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:
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.
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.