GroupEnumUnitsOfTypeCounted
- Parameters
-
whichGroup groupThe group to be modified.
unitname stringThe internal name of the unit definition to consider for adding units. For original unit definitions, this equals the
nameproperty inunits/unitui.slk, for custom unit definitions, it equals "custom_" + fourcc (e.g., "custom_h000").filter boolexprA filter function that is run for each considered unit.
countLimit integerMaximum 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
countLimitdoesn'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