Arma 3 Scripting

Command in Multiplayer, Team Switch, Object Detection

switchableUnits

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

Description

Returns a list of playable units available for switching to

Syntax

switchableUnits

Returns: Array of Objects

Examples

Example 1

_availableUnits = switchableUnits;

Multiplayer

In Multiplayer, switchableUnits are only available when respawn type is set to SIDE or GROUP, the mission contains units marked playable and player is able to switch to any of those units. On dedicated servers, this command returns an empty array,.

See also

Team Switch · playableUnits · allPlayers · teamSwitch