• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] works or not?...

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