• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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