assignTeam: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters") |
Lou Montana (talk | contribs) m (Text replacement - "[[Category:Scripting Commands ArmA|" to "[[Category:Scripting Commands Armed Assault|") |
||
Line 56: | Line 56: | ||
[[Category:Scripting Commands|ASSIGNTEAM]] | [[Category:Scripting Commands|ASSIGNTEAM]] | ||
[[Category:Scripting Commands OFP Elite |ASSIGNTEAM]] | [[Category:Scripting Commands OFP Elite |ASSIGNTEAM]] | ||
[[Category:Scripting Commands | [[Category:Scripting Commands Armed Assault|ASSIGNTEAM]] | ||
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] |
Revision as of 16:52, 3 June 2020
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
- "MAIN" - (white)
- "RED" - (red)
- "GREEN" - (green)
- "BLUE" - (blue)
- "YELLOW" - (yellow)
- Groups:
- Uncategorised
Syntax
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
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP Elite
- Scripting Commands Armed Assault
- Command Group: Groups
- Scripting Commands Arma 2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters