So basically I need a unit to be permanently invisible except when it attacks or moves. After attacking or moving the unit will turn invisible in 3 seconds. I basically have a Behavior that creates a persistent every 1 second with the following validators:
NotMoving(Unnamed)
Caster Not Attacking
The persistent effect expires in 3 seconds and applies a behavior which cloaks the unit with the Remove Validators NotMoving and Caster Not Attacking.
Problem is the cloaking buff does not seem to be removed after the unit moves or attacks.
Try having each of the unit's abilities place a behavior on the caster unit. This behavior should suppress your cloaking behavior and have a duration of 3 sec.
Sorry to drag this back up, but how exactly do you apply a cloak/invisibility to a unit? I've tried reverse-engineering the Ghost's cloak, but checking off the "Cloak" validator flag in the Behavior: Modifiaction + of the Behavior and checking off "Hidden" in the Behavior's Stats: Flags doesn't seem to be working.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So basically I need a unit to be permanently invisible except when it attacks or moves. After attacking or moving the unit will turn invisible in 3 seconds. I basically have a Behavior that creates a persistent every 1 second with the following validators:
NotMoving(Unnamed) Caster Not Attacking
The persistent effect expires in 3 seconds and applies a behavior which cloaks the unit with the Remove Validators NotMoving and Caster Not Attacking.
Problem is the cloaking buff does not seem to be removed after the unit moves or attacks.
I am obsesed with triggers so... My suggestion would be to do it with triggers. :D I am not sure of how to do it with data
@Roar_Man: Go
Try having each of the unit's abilities place a behavior on the caster unit. This behavior should suppress your cloaking behavior and have a duration of 3 sec.
Something like this?
Slypoos thanks for the example map!
And thank you Zeldarules and Khalanil for your replies as well :D
@Roar_Man: Go
No problem, always happy to help out a fellow mapper :)
Sorry to drag this back up, but how exactly do you apply a cloak/invisibility to a unit? I've tried reverse-engineering the Ghost's cloak, but checking off the "Cloak" validator flag in the Behavior: Modifiaction + of the Behavior and checking off "Hidden" in the Behavior's Stats: Flags doesn't seem to be working.