Is it possible to register all "Unit_enters_Region" events to one trigger?
Tryed it and ... it doesnt fire...maybe i made a mistake, or its just a limitation the engine has ...
udg_zGebiete is filled with Rects...
Tryed it and ... it doesnt fire...maybe i made a mistake, or its just a limitation the engine has ...
udg_zGebiete is filled with Rects...
JASS:
globals
rect array udg_zGebiete
endglobals
function InitTrig_Movement takes nothing returns nothing
local trigger Movement = CreateTrigger( )
local integer i = 0
loop
exitwhen i>90 //for all Rects of all Players
call TriggerRegisterEnterRectSimple(Movement, udg_zGebiete[i])
set i = i+1
endloop
call TriggerAddCondition( Movement, Condition( function Trig_Move_Cond ) )
call TriggerAddAction( Movement, function Trig_Move_Actions )
set i = 0
call DestroyTrigger(Movement)
set Movement = null
endfunction