ScarDoc

Start typing to search the SCAR reference.

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

  • teamTeamIDrequired
  • allBooleanrequired
  • functionLuaFunctionrequired

Returns

Boolean

Source

Declared in the game's script sources at:

scar/team.scar