• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[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