addSwitchableUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1
 
|version1= 1.00
 
|game2= arma2
 
|version2= 1.00
 
|game3= arma2oa
 
|version3= 1.51
 
|game4= tkoh
 
|version4= 1.00
 
|game5= arma3
 
|version5= 0.50


|gr1= Team Switch
|gr1= Team Switch


|1.00
|descr= Adds an unit to the list of units available for [[Team_Switch|Team Switch]]. Units marked as [[playableUnits|playable]] in editor are automatically switchable.
 
This command allows to add non-playable unit into array of [[switchableUnits]] and make them available for [[teamSwitch]]. '''Singleplayer only!'''
| Adds a unit into the list of units available for [[Team_Switch|Team Switch]]. Units marked as [[playableUnits|playable]] in editor are automatically switchable.
This command allows to add non-playable unit into array of [[switchableUnits]] and make them available for [[teamSwitch]]. SP only.


| [[addSwitchableUnit]] unitName
|s1= [[addSwitchableUnit]] unit


|p1= unitName: [[Object]]
|p1= unit: [[Object]]


| [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[[addSwitchableUnit]] bob</code>
|x1= <code>[[addSwitchableUnit]] bob</code>
Line 20: Line 36:
|seealso= [[teamSwitch]], [[removeSwitchableUnit]], [[switchableUnits]]
|seealso= [[teamSwitch]], [[removeSwitchableUnit]], [[switchableUnits]]
}}
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}

Revision as of 14:04, 28 March 2021

Hover & click on the images for description

Description

Description:
Adds an unit to the list of units available for Team Switch. Units marked as playable in editor are automatically switchable. This command allows to add non-playable unit into array of switchableUnits and make them available for teamSwitch. Singleplayer only!
Groups:
Team Switch

Syntax

Syntax:
addSwitchableUnit unit
Parameters:
unit: Object
Return Value:
Nothing

Examples

Example 1:
addSwitchableUnit bob

Additional Information

See also:
teamSwitchremoveSwitchableUnitswitchableUnits

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