ForceEnumPlayers

Parameters
whichForceforce
filterboolexpr
comment

Populates the force by iterating all existing players and AI (excluding player neutral etc.) and adds them to force if filter returned true.

Calling GetFilterPlayer will return the current player, see Filter.

note

If you only want to iterate the force without changing it, use ForForce.

patch

1.00

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
nothing
Source code
native ForceEnumPlayers         takes force whichForce, boolexpr filter returns nothing