Arma 3 Scripting

assignTeam

  • Global argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · original wiki page

Description

Team Value
White "MAIN"
Red "RED"
Green "GREEN"
Blue "BLUE"
Yellow "YELLOW"

Assigns the unit (in case of a vehicle, its commander) to the given team. Team is an option in group control (unit management) menu that allows to split player group in teams and then give bulk order to separate teams. In order to operate properly, the command requires specific conditions:

The colour of the assigned team for a unit is seen on the group management UI as well as squad radar.

Important

In older versions of the game (Arma 2?) the effect of this command is local Local effect.

Syntax

unit assignTeam team

Parameters:

Returns: Nothing

Examples

Example 1

_soldier2 assignTeam "RED";

Example 2

In a unit's init script in the editor spawn should be used, otherwise a race condition may be experienced:

this spawn { _this assignTeam "RED" };

See also

assignedTeam · dissolveTeam · unassignTeam