ScarDoc

Start typing to search the SCAR reference.

Function
Player

Player_GetAll

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

On this page
Player_GetAll(player, sgroup, egroup)

Description

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

Parameters

  • playerPlayerIDrequired
  • sgroupSGroupIDoptional
  • egroupEGroupIDoptional

Returns

Void

Source

Declared in the game's script sources at:

scar/player.scar