GroupEnumUnitsOfTypeCounted
- Parameters
-
whichGroup group
The group to be modified.
unitname string
The internal name of the unit definition to consider for adding units. For original unit definitions, this equals the
name
property inunits/unitui.slk
, for custom unit definitions, it equals "custom_" + fourcc (e.g., "custom_h000").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 of matching internal name to it.
- note
-
See
GroupEnumUnitsOfType
- bug
-
Causes irregular behavior when used with large numbers.
- note
-
Probably
countLimit
doesn't work similar toGroupEnumUnitsInRangeCounted
. Instead seeGroupEnumUnitsOfType
. - patch
-
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
nothing
- Source code
-
native GroupEnumUnitsOfTypeCounted takes group whichGroup, string unitname, boolexpr filter, integer countLimit returns nothing