- Joined
- Mar 10, 2009
- Messages
- 5,016
I wonder if this works or not?...
JASS:
function haha takes nothing returns boolean
set udg_index = udg_index + 1
set udg_UNIT[udg_index] = GetFilterUnit()
if udg_index >= 10 then
call KillUnit(udg_UNIT[GetRandomInt(1, 10)])
set udg_index = 0
endif
return false
endfunction
function asdf takes nothing returns nothing
local rect r = bj_mapInitialPlayableArea
local real x = GetRectCenterX(r)
local real y = GetRectCenterY(r)
call GroupEnumUnitsInRange(bj_lastCreatedGroup, x, y, 999999, Filter(function haha))
endfunction