• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] an order stop which doesn't stop

Status
Not open for further replies.
Level 3
Joined
Jan 1, 2012
Messages
50
hi,
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.
 
Level 3
Joined
Jan 1, 2012
Messages
50
JASS:
    loop
        exitwhen i == 10
        set udg_Apm_j[i] = 0
        set udg_Time_on_ice[i] = 0
        set udg_Wait_action[i] = false
        call TriggerRegisterPlayerUnitEvent( gg_trg_create_roc, Player(i), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER, null)
        call TriggerRegisterPlayerUnitEvent( gg_trg_create_mob, Player(i), EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER, null)
        set i = i + 1
    endloop
 
Status
Not open for further replies.
Top