Order unit to do variable order

Leazy

You can change this now in User CP.
Reaction score
50
Hello!

I store units orders like this:

Trigger:
  • Save Orders
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • Set ReplaceUnit_Order[1] = (Current order of (Triggering unit))


I wonder, is there any line of custom script to make a unit do udg_ReplaceUnit_Order[1]? Because I couldn't find any line in GUI. Thanks in advance!
 

Laiev

Hey Listen!!
Reaction score
188
Unit - Order unit...

Then instead of search for the order in the list, you put your variable
 

Leazy

You can change this now in User CP.
Reaction score
50
Can't find just order unit? There's options like with no target, targeting a point etc, since this variable can be any of those it wont work.
 

Laiev

Hey Listen!!
Reaction score
188
Eww GUI is so stupid >.>

The type of that variable is an integer, you only can order an unit to do it by [ljass]call IssueImmediateOrderById(udg_MyVariableOfUnit, udg_eplaceUnit_Order[1])[/ljass]
 
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