ScarDoc

Start typing to search the SCAR reference.

Function
Team

Team_GetAll

Creates/Clears groups that contain all of a team's units and buildings. Defaults - sg_allsquads and eg_allentities

On this page
Team_GetAll(team, sgroup, egroup)

Description

Fills an SGroup with all of the given team's squads, and an EGroup with all the team's entities. If you don't provide and groups, then it defaults to using sg_allsquads and eg_allentities.

Parameters

  • teamTeamIDrequired
  • sgroupSGroupIDoptional
  • egroupEGroupIDoptional

Returns

Void

Source

Declared in the game's script sources at:

scar/team.scar