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

Auto-attack detection?

Status
Not open for further replies.
Level 11
Joined
Jul 12, 2005
Messages
764
hello again!
i've made a spell called Confusion. If a unit under the effect of Confusion is issued a target or point order, it won't obey, and go exactly to the opposite direction.

it's ok, and working, BUT:
(i've made it self targettable to check if it works)
when i right click somewhere or on a unit, it works.
but when a unit comes in range of my unit, it automatically attacks the enemy, instead of moving from there. warcraft doesn't count this "attack type" to an order.
also the spell doesn't work on computer units, maybe because of the same problem. :(

i think this is called auto-aquire or something like that.
how can i detect it?
 
Status
Not open for further replies.
Top