- Joined
- May 15, 2008
- Messages
- 105
Trigger "LeavingArea" is complexed. It compiles so I paste only the Init function because I want to ask about it.
Problem:
Trigger doesn't run when one of events occurs. I have used
to test it. It clearly shows Trig_LeavingArea_Actions is not executed.
Question:
Why it doesn't work/how to fix?
JASS:
function InitTrig_LeavingArea takes nothing returns nothing
set gg_trg_LeavingArea = CreateTrigger( )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 107
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call TriggerRegisterLeaveRectSimple( gg_trg_LeavingArea, udg_Area_Region[GetForLoopIndexA()])
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call TriggerAddAction( gg_trg_LeavingArea, function Trig_LeavingArea_Actions )
endfunction
Problem:
Trigger doesn't run when one of events occurs. I have used
JASS:
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 120.00, [test string] )
Question:
Why it doesn't work/how to fix?