EnumUnitsSelected
- Parameters
-
whichPlayer player
enumFilter boolexpr
enumAction code
- bug
Leaks handle
g
: In Jass you must set local variables that hold agents (or any child type) tonull
at the end of functions to avoid reference counter leaks.- comment
For the target player choose all currently selected units that match the filter and run
enumAction
on them.- note
Destroys the
enumFilter
boolexpr
received as argument.- return type
nothing
- Source code
function EnumUnitsSelected takes player whichPlayer, boolexpr enumFilter, code enumAction returns nothing local group g = CreateGroup() call SyncSelections() call GroupEnumUnitsSelected(g, whichPlayer, enumFilter) call DestroyBoolExpr(enumFilter) call ForGroup(g, enumAction) call DestroyGroup(g) endfunction
- Source
- Blizzard.j
- wc3modding.com
- EnumUnitsSelected