I created a trigger that attachs an actor to a unit and it's been stored in a variable. Is there any function that allows me to hide that attached actor?
I plan on using it for when someone enters certain area, the actors just hides itself.
Couldn't you just destroy the actor (send actor message) and recreate it when it's supposed to un-hide again? That's how Blizzard does it with the siege tank and radar tower range indicators for example.
Edit: Started to use my brain and skimmed through which other actor messages exists. I haven't tried them but... sounds like what you wanna do.
Quote from Berrala:
Couldn't you just destroy the actor (send actor message) and recreate it when it's supposed to un-hide again? That's how Blizzard does it with the siege tank and radar tower range indicators for example.
Edit: Started to use my brain and skimmed through which other actor messages exists. I haven't tried them but... sounds like what you wanna do.
Actor - Send message "SetVisibility" to actor X
Actor - Send message "SetOpacity" to actor X
----
I would suggest you look into setting up the appropriate actor events...
I spose this is not a custom actor you used for this...
I would suggest
Making your own actor to use for this attachment.
Edit the new actors events to hide/display properly
Data editing is really mind boggling for me, so I barely understood much. I am attaching specifically a rain emitter on the unit overhead, and if they enter certain regions marked as indoor, the emitter would hide.
if your attaching it with trigger you should do this
have a global variable to track it with
remove it with triggers when the unit enters regions that are spose to be indoors using the refrenced global variable.... Type = Actor ....make it an array if your game is multi player
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
if your attaching it with trigger you should do this
have a global variable to track it with
remove it with triggers when the unit enters regions that are spose to be indoors using the refrenced global variable.... Type = Actor ....make it an array if your game is multi player
I already had those setted up. I just needed to know if there was a way to hide them.
I created a trigger that attachs an actor to a unit and it's been stored in a variable. Is there any function that allows me to hide that attached actor?
I plan on using it for when someone enters certain area, the actors just hides itself.
Couldn't you just destroy the actor (send actor message) and recreate it when it's supposed to un-hide again? That's how Blizzard does it with the siege tank and radar tower range indicators for example.
Edit: Started to use my brain and skimmed through which other actor messages exists. I haven't tried them but... sounds like what you wanna do.
Quote from Berrala:
Couldn't you just destroy the actor (send actor message) and recreate it when it's supposed to un-hide again? That's how Blizzard does it with the siege tank and radar tower range indicators for example.
Edit: Started to use my brain and skimmed through which other actor messages exists. I haven't tried them but... sounds like what you wanna do.
Actor - Send message "SetVisibility" to actor X
Actor - Send message "SetOpacity" to actor X
----
Sweet! Thanks it helps a lot!
@DarkForce9999: Go
I would suggest you look into setting up the appropriate actor events...
I spose this is not a custom actor you used for this...
I would suggest
Data editing is really mind boggling for me, so I barely understood much. I am attaching specifically a rain emitter on the unit overhead, and if they enter certain regions marked as indoor, the emitter would hide.
@DarkForce9999: Go
if your attaching it with trigger you should do this
I already had those setted up. I just needed to know if there was a way to hide them.
In the trigger to hide:
Actor - Send message "SetVisibility" to actor Stored_Actor
And in the trigger to reveal:
Actor - Send message "SetVisibility 1" to actor Stored_Actor