---
name: "teamSwitch"
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/teamSwitch
revid: 351299
updated: 2023-11-27T03:59:30Z
---

# teamSwitch

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

## Description

Invoke the Team Switch dialog (force it even when conditions are not met).
There has to be at least one playable unit for team switch to work, and for this command to work in MP, respawn type in [description.ext](../topics/Description.ext.md) should be 5 (SIDE).

> [!NOTE]
> When player switches and leaves behind AI unit, you need to enable "TeamSwitch" AI on it `_unit enableAI "TeamSwitch"` so that the unit continues with [waypoints](../commands/waypoints.md).

## Syntax

```sqf
teamSwitch
```

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

## Examples

### Example 1

```sqf
teamSwitch;
```

## See also

Team Switch · [enableTeamSwitch](../commands/enableTeamSwitch.md) · [onBriefingTeamSwitch](../commands/onBriefingTeamSwitch.md) · [onTeamSwitch](../commands/onTeamSwitch.md) · [teamSwitchEnabled](../commands/teamSwitchEnabled.md) · [selectPlayer](../commands/selectPlayer.md)

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