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

Need help on a simple (sorta) trigger

Status
Not open for further replies.
Level 10
Joined
Sep 3, 2009
Messages
458
Well I'm making a trigger that when you right click on an enemy unit, the ability will autocast on that target. So I made this trigger that I thought would be best to simulate this:

  • Attack
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Set Attacker = (Triggering unit)
      • Set Attacked = (Target unit of issued order)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Current order of Attacker) Equal to (==) (Order(move))
          • Then - Actions
            • Unit - Order Attacker to Neutral - Firebolt Attacked
          • Else - Actions
But for some reason when I just right click on the unit it wont work. But when I click the move command and click it on a target it works! Help. I've seen it done before in "Stand of Blades".
 
Status
Not open for further replies.
Top