GetUnitsInRectOfPlayer

Parameters
r rect
whichPlayer player
return type
group
Source code
function GetUnitsInRectOfPlayer takes rect r, player whichPlayer returns group
    local group g = CreateGroup()
    set bj_groupEnumOwningPlayer = whichPlayer
    call GroupEnumUnitsInRect(g, r, filterGetUnitsInRectOfPlayer)
    return g
endfunction
Source
Blizzard.j
wc3modding.com
GetUnitsInRectOfPlayer