- Joined
- Jan 1, 2012
- Messages
- 50
hi,
why that doesn't stop the unit ?
i try to kill, that work.
i try pause/unpause, that closes my war3.
i try pause/stop/unpause, that doesn't stop.
i try use a spell, that doesn't stop
i try with a wait, that stop but after a delay, it isn't nice.
JASS:
function CreateMobCondition2 takes nothing returns boolean
return IsPlayerInForce(GetTriggerPlayer(), udg_Creater2)
endfunction
function Trig_create_roc_Actions takes nothing returns nothing
local integer i = GetPlayerId(GetTriggerPlayer())
call IssueImmediateOrder(GetTriggerUnit(), "stop")
set udg_L = udg_L + 1
set udg_Futur_rect_roc_x[udg_K] = GetOrderPointX()
set udg_Futur_rect_roc_y[udg_K] = GetOrderPointY()
set udg_Unit_created[udg_L] = CreateUnit(Player(11), udg_pierre, udg_Futur_rect_roc_x[udg_K], udg_Futur_rect_roc_y[udg_K], 0)
set udg_K = udg_K + 1
endfunction
//===========================================================================
function InitTrig_create_roc takes nothing returns nothing
set gg_trg_create_roc = CreateTrigger( )
call TriggerAddCondition(gg_trg_create_roc, Condition(function CreateMobCondition2))
call TriggerAddAction( gg_trg_create_roc, function Trig_create_roc_Actions )
endfunction
why that doesn't stop the unit ?
i try to kill, that work.
i try pause/unpause, that closes my war3.
i try pause/stop/unpause, that doesn't stop.
i try use a spell, that doesn't stop
i try with a wait, that stop but after a delay, it isn't nice.