• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Creating a Semi Cloak

Status
Not open for further replies.
Level 5
Joined
Dec 13, 2008
Messages
141
Alright, I want to have a unit be invisible when he is not attacking(Like the Zealot upgrade in Pobes vs Zealot and Rikimaru from DotA)

I thought a requirement would do the trick but it didn't work(All I did in the requirement was Field Semi Cloak Not Attacking
: Requirement + (!CountAbil(attack,QueuedOnlyAtUnit)|(None))
)

Some insight would be nice.

EDIT: I think I may have figured out but not sure. Would it be a Validator?
 
Last edited:
Level 5
Joined
Dec 13, 2008
Messages
141
Ok, I gave the Invisibility behavior the NotAttacking Validator and a requirement with the same event, except I changed QueuedOnlyAtUnit to CompletedOnlyAtUnit and it isn't de-cloaking the unit when he is attacking.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Well here is one way which should work.

Unit starts out permanently cloaked.
Unit has permanent Behaviour
Behaviour fires an effect when owner deals damage.
Effect adds Behaviour2 to the damag source unit.
Behaviour2 turns off cloaking and lasts a few seconds before expiring.

Advantage is that it allows you to make the unit remain uncloaked for a while after attacking. Disadvantage is only once the unit deals damage does he uncloak meaning that the entire animation stage of attacking his first attack he remains cloaked.
 
Status
Not open for further replies.
Top