Storing and retreiving orders

Arkan

Nobody rides for free
Reaction score
92
So I want to store the order of a certain unit, do stuff to the unit, and after x sec I want the unit to continue whatever it was doing. I figured something like this:

JASS:
function habla takes nothing returns nothing
local integer order = getattachedint/whatever(order)

call .....?

endfunction


function lala takes unit u returns nothing
local integer order

set order = GetUnitCurrentOrder(u)
//attach to struct/gc/whatever
endfunction


So how do I know if I should call IssuePointOrder(order), IssueImmediateOrder(order) or IssueTargetOrder(order)?
 

substance

New Member
Reaction score
34
Well, that would require you to able to tell what kind of order that unit currently has by looking at it's orderid... which i THINK is impossible.

I know some orders have a specific numerical range, but im not sure what they all are.
 

N-a-z-g-u-l

New Member
Reaction score
30
no...
my idea would be to make triggers which save if its a point / target / no target order... therefor you could either use the custom value (0=point,1=target,2=no target), a gamecache system or any other handle storage systems...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top