Example: I want to make a ghost invisible only when he's not moving. So he should become visible (decloaked) when running around and return to being cloaked when resting.
May be that there is a simple solution but I don't know of any right now.
Thx a lot guys. One more question: how can I make the ghost ceasing all attacks (so he doesn't move around and decloak all the time) when he has just entered cloaked mode?
Example: I want to make a ghost invisible only when he's not moving. So he should become visible (decloaked) when running around and return to being cloaked when resting.
May be that there is a simple solution but I don't know of any right now.
yea you can use validator, either check speed or there isMoving validator.
Then (not sure here) you can give unit permanent cloak and add periodic behavior which will apply decloak effect when validator pass.
There already is a CasterIsStationary validator.
But yeah, just put that in the Validators(Disable)+ field on your cloak buff.
Thx a lot guys. One more question: how can I make the ghost ceasing all attacks (so he doesn't move around and decloak all the time) when he has just entered cloaked mode?
Make the bevahior also set the "Passive" flag, as used by Ghost - Hold Fire.
Or deactivate the weapon/suppress attacks if you want to prevent the player from manually attacking as well.
Solved? Man I feel redundant at times.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg