addSwitchableUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 103769 by killzone_kid on 2017-07-10T18:30:20Z)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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]] |= Parameter 1
|p1= unitName: [[Object]] |= Parameter 1


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 20: Line 20:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[teamSwitch]], [[removeSwitchableUnit]], [[switchableUnits]] |= See also
| [[teamSwitch]], [[removeSwitchableUnit]], [[switchableUnits]] |SEEALSO=


}}
}}

Revision as of 12:25, 7 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