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

Help with a custom combat engine

Status
Not open for further replies.
Level 8
Joined
Mar 3, 2009
Messages
327
What I am trying to do is detect when a unit is ordered to attack while it already has the attack once order. Unfortunately a trigger that detects an order doesn't seem (emphasis on the 'seem') to work. Either the order isnt "issued" or it doesnt last long enough for "issued order" and "target unit of issued order" to be detected.

Either way, please give me an explanation, a working trigger or tell me that theres no way to detect a right click while a unit is attacking. Thanks.
 
Level 3
Joined
Sep 25, 2008
Messages
50
  • Events
  • Unit - A unit is issued an order targeting an object
  • Conditions
    • Or - Any (Conditions) are true
      • Conditions
        • (Issued order) Equal to (Order(smart))
        • (Issued order) Equal to (Order(attack))
That's how you detect a right click on an enemy unit.
 
Status
Not open for further replies.
Top