assignTeam

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
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
  • Units in player's group as well as player himself can all have different teams assigned
  • The colour of the assigned team for a unit is seen on the group management UI as well as squad radar
The possible team values (colours) are:
  • "MAIN" - (white)
  • "RED" - (red)
  • "GREEN" - (green)
  • "BLUE" - (blue)
  • "YELLOW" - (yellow)
NOTE: In older version of the game the effect of this command is local Effects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Syntax

Syntax:
unit assignTeam team
Parameters:
unit: Object
team: String
Return Value:
Nothing

Examples

Example 1:
_soldier2 assignTeam "RED";

Additional Information

Multiplayer:
-
See also:
assignedTeamdissolveTeamunassignTeam

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on July 12, 2016 - 16:19 (UTC)
Commy2
Since Arma 3 v1.62 this command has global effects and is persistent even on machines that join in progress.