assignTeam: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 107110 by R3vo on 2018-05-04T11:58:15Z)
m (template:command argument fix)
Line 22: Line 22:
* "YELLOW"  - (yellow)
* "YELLOW"  - (yellow)
'''NOTE''': In older version of the game the effect of this command is local {{EffArg|cmd|eff|local}}
'''NOTE''': In older version of the game the effect of this command is local {{EffArg|cmd|eff|local}}
  |= Description
  |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''assignTeam''' team |= Syntax
| unit '''assignTeam''' team |SYNTAX=


|p1= unit: [[Object]] |= Parameter 1
|p1= unit: [[Object]] |= Parameter 1
Line 31: Line 31:
|p2= team: [[String]] |= Parameter 2
|p2= team: [[String]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
Line 40: Line 40:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[assignedTeam]], [[dissolveTeam]], [[unassignTeam]] |= See also
| [[assignedTeam]], [[dissolveTeam]], [[unassignTeam]] |SEEALSO=


}}
}}

Revision as of 11:25, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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 Template:EffArg
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
_soldier2 assignTeam "RED";
Example 2:
In a unit's init script in the editor you should use the following. Or else you might experience race conditions. 0 = this spawn {_this assignTeam "RED"};

Additional Information

See also:
assignedTeamdissolveTeamunassignTeam

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section