addSwitchableUnit: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
Lou Montana (talk | contribs) |
||
Line 1: | Line 1: | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma | | | arma |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| 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.|DESCRIPTION= | | 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. |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[addSwitchableUnit]] unitName|SYNTAX= | ||
|p1= unitName: [[Object]] |PARAMETER1= | |p1= unitName: [[Object]] |PARAMETER1= | ||
Line 17: | Line 18: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[addSwitchableUnit]] bob</code> |= | |x1= <code>[[addSwitchableUnit]] bob</code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[teamSwitch]], [[removeSwitchableUnit]], [[switchableUnits]] |SEEALSO= | | [[teamSwitch]], [[removeSwitchableUnit]], [[switchableUnits]] |SEEALSO= | ||
}} | }} | ||
Line 34: | Line 34: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands| | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA| | [[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:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command Group: Remote Control]] |
Revision as of 12:49, 8 April 2019
Description
- Description:
- Adds a unit into 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. SP only.
- Groups:
- Uncategorised
Syntax
- Syntax:
- addSwitchableUnit unitName
- Parameters:
- unitName: Object
- Return Value:
- Nothing
Examples
- Example 1:
addSwitchableUnit bob
Additional Information
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