teamSwitch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma |= Game name
| arma |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Invoke the [[Team_Switch|Team Switch]] dialog (force it even when conditions are not met). There has to be at least one playable unit for team switch to work, and for this command to work in MP, respawn type in [[description.ext]] should be 5 (SIDE).
| Invoke the [[Team_Switch|Team Switch]] dialog (force it even when conditions are not met).
 
There has to be at least one playable unit for team switch to work, and for this command to work in MP, respawn type in [[description.ext]] should be 5 (SIDE).<br><br>
<br><br>
{{Informative | When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it <tt>_unit [[enableAI]] "TeamSwitch"</tt> so that the unit continues with [[waypoints]]. }} |DESCRIPTION=
NOTE: When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it <tt>_unit [[enableAI]] "TeamSwitch"</tt> so that the unit continues with [[waypoints]] |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''teamSwitch''' |SYNTAX=
| [[teamSwitch]] |SYNTAX=


|x1= <code>[[teamSwitch]];</code> |Example 1=
|x1= <code>[[teamSwitch]];</code> |Example 1=
Line 20: Line 19:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Team_Switch]], [[enableTeamSwitch]], [[onBriefingTeamSwitch]], [[onTeamSwitch]], [[teamSwitchEnabled]] |SEEALSO=
| [[Team Switch]], [[enableTeamSwitch]], [[onBriefingTeamSwitch]], [[onTeamSwitch]], [[teamSwitchEnabled]] |SEEALSO=


}}
}}
Line 33: Line 32:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>


[[Category:Scripting Commands|TEAMSWITCH]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|TEAMSWITCH]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{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:Command Group: Remote Control]]

Revision as of 13:22, 8 April 2019

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

Description

Description:
Invoke the Team Switch dialog (force it even when conditions are not met). There has to be at least one playable unit for team switch to work, and for this command to work in MP, respawn type in description.ext should be 5 (SIDE).

When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it _unit enableAI "TeamSwitch" so that the unit continues with waypoints.
Groups:
Uncategorised

Syntax

Syntax:
teamSwitch
Return Value:
Nothing

Examples

Example 1:
teamSwitch;

Additional Information

See also:
Team SwitchenableTeamSwitchonBriefingTeamSwitchonTeamSwitchteamSwitchEnabled

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