I have a trigger to check if Zeratul is attacking, and if so it disables his cloak.
Im having an issue with checking if hes not attacking to turn it back on.
The only Event that makes sense is "Unit - Unit becomes Idle" but doesnt work.
I tryed using the EnermiesNearby validator and it works but its opposite. Cloak on when attacking and Cloak off when not. Usually this would be a good thing since i just have tor reverse it. but my Data Editor skills arnt much, which is why i usually stick with triggers.
Ah got it to work, switch validator to No Enemys Nearby and changed Target Location to Target Point and Compare to Equal To and Search Filters to Exclud Ally and Neutral.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey all.
I have a trigger to check if Zeratul is attacking, and if so it disables his cloak. Im having an issue with checking if hes not attacking to turn it back on. The only Event that makes sense is "Unit - Unit becomes Idle" but doesnt work.
anyone know of a way to check this.
@Projekton: Go
Search for "attack" or "is not attacking" in the validators tab, then try applying validators that look right to Zeratul's cloaking behavior.
You could disable the cloak on each attack for a couple of seconds.
@zorbotron: Go
I tryed using the EnermiesNearby validator and it works but its opposite. Cloak on when attacking and Cloak off when not. Usually this would be a good thing since i just have tor reverse it. but my Data Editor skills arnt much, which is why i usually stick with triggers.
@Projekton: Go
Ah got it to work, switch validator to No Enemys Nearby and changed Target Location to Target Point and Compare to Equal To and Search Filters to Exclud Ally and Neutral.