Arma 3 Scripting

switchableUnits

  • Local effect
  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · also in Team Switch, Object Detection · Markdown · JSON · 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