addSwitchableUnit: 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=
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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=
| [[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|ADDSWITCHABLEUNIT]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|ADDSWITCHABLEUNIT]]
[[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:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Groups|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Remote Control]]

Revision as of 13:49, 8 April 2019

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

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

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

Notes

Bottom Section