addSwitchableUnit

From Bohemia Interactive Community
Revision as of 19:17, 10 July 2017 by Killzone Kid (talk | contribs) (outdated note removed)
Jump to navigation Jump to search
-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 it 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

Messiah2
This command does not work as well as setPlayable: http://dev-heaven.net/issues/show/4461 (ArmA 2 OA v1.59)

Bottom Section