• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[JASS] works or not?...

Status
Not open for further replies.
Level 29
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
 
Status
Not open for further replies.
Top