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 command requires player to be fully initialised
- the unit getting assigned must be either player himself or a unit in player's group 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" };