Arma 3 Scripting

Command in Groups

assignTeam

Also available as Markdown and JSON, or read the 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:

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