---
name: "addSwitchableUnit"
type: command
status: ok
groups: ["Team Switch"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/addSwitchableUnit
revid: 325232
updated: 2022-07-04T10:32:04Z
---

# addSwitchableUnit

*Command · Team Switch · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

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

## Syntax

```sqf
addSwitchableUnit unit
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
addSwitchableUnit bob;
```

## See also

[teamSwitch](../commands/teamSwitch.md) · [removeSwitchableUnit](../commands/removeSwitchableUnit.md) · [switchableUnits](../commands/switchableUnits.md)

<sub>Source: [BI Community Wiki — addSwitchableUnit](https://community.bistudio.com/wiki/addSwitchableUnit) (revision 325232).</sub>
