Function
Team
Team_ForEachAllOrAny
Tests a condition on teams. Calls your function for each player. Parameters of your function: (TeamID, player index, PlayerID). Your function must return true or false to indicate whether the player meets the condition.
On this page
Team_ForEachAllOrAny(team, all, function)Description
Tests a condition on teams. Calls your function for each player. Parameters of your function: (TeamID, player index, PlayerID). Your function must return true or false to indicate whether the player meets the condition.
Parameters
teamTeamIDrequiredallBooleanrequiredfunctionLuaFunctionrequired
Returns
BooleanSource
Declared in the game's script sources at:
scar/team.scar