Difference between revisions of "teamSwitch"

From Bohemia Interactive Community
Jump to navigation Jump to search
(MP note)
(added note to description removed from notes)
Line 7: Line 7:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| 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) |= Description
+
| 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>
 +
NOTE: When payer 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
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
Line 33: Line 36:
 
[[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}}}}]]
 
<!-- CONTINUE Notes -->
 
<dl class="command_description">
 
<dd class="notedate">Posted on May 13, 2015 - 07:15 (UTC)</dd>
 
<dt class="note">[[User:Benargee|Benargee]]</dt>
 
<dd class="note">To get a unit back to it's normal AI behaviour after using team switch, simply use this code on the unit:
 
<code>_unit [[enableAI]] "TEAMSWITCH";</code>
 
(Tested in {{Name|a3}} 1.44)
 
</dd>
 
</dl>
 
<!-- DISCONTINUE Notes -->
 

Revision as of 19:55, 30 July 2017

-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).

NOTE: When payer 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

Examples:
Example needed

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