GetPlayersMatching
- Parameters
-
filter boolexpr
- comment
- bug
-
Leaks handle
f
: 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. - note
-
Destroys the
filter
boolexpr
received as argument. - note
-
Creates a new force object and returns it. The caller must remove it on its own after use.
- patch
-
1.00
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
-
force
- Source code
-
function GetPlayersMatching takes boolexpr filter returns force local force f = CreateForce() call ForceEnumPlayers(f, filter) call DestroyBoolExpr(filter) return f endfunction