GroupEnumUnitsInRangeOfLocCounted
- Parameters
-
whichGroup group
The group to be modified.
whichLocation location
Center location of the circle within which units should be considered.
radius real
Radius in map units.
filter boolexpr
A filter function that is run for each considered unit.
countLimit integer
Maximum amount of units to be considered. (Does not work)
- comment
-
Clears a group and then adds units within given radius of location to it.
- note
-
See
GroupEnumUnitsInRangeOfLoc
. - bug
-
Causes irregular behavior when used with large numbers.
- note
-
Probably
countLimit
doesn't work similar toGroupEnumUnitsInRangeCounted
. Instead seeGroupEnumUnitsInRangeOfLoc
. - patch
-
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
nothing
- Source code
-
native GroupEnumUnitsInRangeOfLocCounted takes group whichGroup, location whichLocation, real radius, boolexpr filter, integer countLimit returns nothing