GroupEnumUnitsInRangeCounted
- Parameters
whichGroup groupThe group to be modified.
x realX map coordinate.
y realY map coordinate.
radius realRadius in map units.
filter boolexprA filter function that is run for each considered unit.
countLimit integerMaximum of amount of units to be considered. (Does not work)
- comment
Clears a group and then adds units within given radius of map coordinates to it.
- bug
Causes irregular behavior when used with large numbers.
- bug
countLimitdoes not work, tested in 1.32.10.18067. Therefore behaves likeGroupEnumUnitsInRangeadding all units in range.- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
native GroupEnumUnitsInRangeCounted takes group whichGroup, real x, real y, real radius, boolexpr filter, integer countLimit returns nothing