Issued order with no target - If Order is an ability being cast?

Icyculyr

I'm a Mac
Reaction score
68
I have code for resuming movement after casting an ability that normally stops you... how can I detect if the issued order is to cast an ability in which case I don't want to store it as the last order.
EDIT: Nevermind I just added the only other possible order which was "HoldPosition" to the conditions that it updates sOrder and oLastOrder.
Trigger:
  • Map Orders Copy Copy
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • ((Triggering unit) is an illusion) Equal to False
      • ((Unit-type of (Triggering unit)) is A Hero) Equal to True
    • Actions
      • Set PN = ((Player number of (Owner of (Triggering unit))) - 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Not equal to (Order(stop))
        • Then - Actions
        • Else - Actions
          • Set oLastOrder[PN] = (Issued order)
          • Set sOrder[PN] = obj
      • Game - Display to (All players) the text: Test
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top