LastOrder
Source function static unit.abortOrder() returns boolean
Source
function static unit.clearLastOrders()
Source
Clears all recorded orders for this unit
function static unit.getLastOrder() returns Order
Source
Returns the lasz recorded order for this unit.
To access further back orders, use .prev
class Order
Source
boolean finished
Source
int orderId
Source
OrderType orderType
Source
unit orderedUnit
Source
Order prev
Source
widget target
Source
'unknown type'
(the type vec2 could not be found, the containing package might not be imported) targetPosition
Source
function copy() returns Order
Source
Use this to copy this order to apply it to another unit.
The copy must be destroyed manually.
function issue() returns boolean
Source
Reissues this order on the unit that originally received the order.
If you want the reissued order to be recorded as well,
in a response to another order, i.e. chained, you need to wrap
it inside using a nulltimer:
let ordr = caster.getLastOrder().prev
nullTimer() ->
ordr.issue()