• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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