- Joined
- May 8, 2010
- Messages
- 150
Basically what it says in the title.
function Trig_CatchInvOrder_Conditions takes nothing returns boolean
return GetIssuedOrderId()>=852002 and GetIssuedOrderId()<=852007
endfunction
function Trig_CatchInvOrder_Actions takes nothing returns nothing
call PauseUnit(GetTriggerUnit(),true)
call IssueImmediateOrderById(GetTriggerUnit(),851973)
call PauseUnit(GetTriggerUnit(),false)
endfunction
//===========================================================================
function InitTrig_CatchInvOrder takes nothing returns nothing
set gg_trg_CatchInvOrder = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_CatchInvOrder, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )
call TriggerAddCondition( gg_trg_CatchInvOrder, Condition( function Trig_CatchInvOrder_Conditions ) )
call TriggerAddAction( gg_trg_CatchInvOrder, function Trig_CatchInvOrder_Actions )
endfunction
GetOrderTargetItem( )
.