GroupEnumUnitsInRange

Parameters
whichGroup group

Group to add units to.

x real

X map coordinate.

y real

Y map coordinate.

radius real

Radius in map units.

filter boolexpr

Filter function.

comment

Adds units within radius of map coordinates X, Y who match filter to whichGroup. A null as filter means that every nearby unit is added to group.

If the group has had units previously, it will be first cleared (old units will not be preserved). A group that has been destroyed will not be recreated.

note

See: GroupEnumUnitsInRect, GroupEnumUnitsInRangeOfLoc.

patch

1.00

return type
nothing
Source code
native GroupEnumUnitsInRange                takes group whichGroup, real x, real y, real radius, boolexpr filter returns nothing
Source
common.j
wc3modding.com
GroupEnumUnitsInRange