AdamGriffith
You can change this now in User CP.
- Reaction score
- 69
JASS:
scope Trees initializer Init
globals
private real X
endglobals
public function Loop takes nothing returns nothing
local destructable d
local real MaxY = GetRectMaxY(bj_mapInitialPlayableArea)
local real y = GetRectMinY(bj_mapInitialPlayableArea)
loop
exitwhen y > MaxY
set d = CreateDestructable(039;LTlt039;, X, y, GetRandomReal(0.0, 360.0), 1.0, -1)
set d = null
set y = y + 128.0
endloop
endfunction
private function Actions takes nothing returns nothing
local real MaxX = GetRectMaxX(bj_mapInitialPlayableArea)
set X = GetRectMinX(bj_mapInitialPlayableArea)
loop
exitwhen X > MaxX
call ExecuteFunc("Trees_Loop")
set X = X + 128.0
endloop
endfunction
//===========================================================================
private function Init takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterTimerEvent(t, 0.0, false)
call TriggerAddAction(t, function Actions)
endfunction
endscope
Thanks,
Adam
+rep to helpers