• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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