Renendaru
(Evol)ution is nothing without love.
- Reaction score
- 309
JASS:
function Trig_Actions_01 takes nothing returns nothing
set udg_Loop[2] = 1
set udg_LoopEnd = 5
loop
exitwhen udg_Loop[2] > udg_LoopEnd
call TriggerRegisterEnterRectSimple( gg_trg_Move_System, udg_MoveRegions[udg_Loop[2]] )
set udg_Integer[udg_Loop[2]] = udg_Loop[2]
set udg_Loop[2] = udg_Loop[2] + 1
endloop
endfunction
//===========================================================================
function InitTrig_Setup_Move_System takes nothing returns nothing
local trigger t = CreateTrigger( )
call TriggerAddAction( t, function Trig_Actions_01 )
endfunction
When using this trigger the events seem to not be added correctly, but just incase here's second half.
Edit: The result is nothing. Nothing seems to trigger.
Code:
Move System
Events
Conditions
Actions
Unit - Move (Triggering unit) instantly to (Center of MovedRegions[Integer[Loop[2]]])