"Lockdown" ability

Status
Not open for further replies.
Level 9
Joined
Aug 7, 2009
Messages
380
Hi,..
How to...
When a unit (enemy) comes near a unit (you) in x seconds, it'll be a "locked down unit". If that unit gone out of range (not near by you anymore) it'll return being a normal unit. And when there's no targeted, the random unit near by will be the "locking down" unit
Hard to explain, so don't be shy to ask if you need more infomation :ogre_haosis:
Thanks
Edit: I'm bad in looping, so i need help. Thanks in advance again
 
Level 19
Joined
Oct 15, 2008
Messages
3,231
Hmm... You might need to create an ability (Like using faerie fire) and a dummy unit first, then use triggers to make a dummy unit cast it to units that enter a certain range of your unit.
Well, to do that, my method would be to use acquisition ranges (Of a dummy unit) and check whether a unit is attacking every 0.1 seconds.
 
Level 9
Joined
Aug 7, 2009
Messages
380
Well, it's not locking on attack, but auto or using a sub-ability (when learning a skill, hero will have it). This sub ability allows to change target when cast. When unit is in range or hero casting that sub ability. The Locking down unit needs a few seconds to be a "locked unit" which we could use a ability to shoot missiles at it.
 
Status
Not open for further replies.
Top