Arma 3 Scripting

Command in Team Switch

addSwitchableUnit

Also available as Markdown and JSON, or read the original wiki page.

Description

Adds a unit to the list of units available for Team Switch. Units marked as playable in editor are automatically switchable. This command adds non-playable unit into array of switchableUnits and makes them available for teamSwitch. Singleplayer only!

Syntax

addSwitchableUnit unit

Parameters:

Returns: Nothing

Examples

Example 1

addSwitchableUnit bob;

See also

teamSwitch · removeSwitchableUnit · switchableUnits