---
name: "switchAction"
type: command
status: ok
groups: ["Unit Control", "Animations"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/switchAction
revid: 323082
updated: 2022-06-28T21:43:13Z
---

# switchAction

*Command · Unit Control, Animations · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

When used on a person, the given action is started immediately (there is no transition). Use switchmove "" to switch back to the default movement if there is no transition back, otherwise the person may be stuck.

## Syntax

```sqf
soldier switchAction action
```

**Parameters:**

- `soldier`: [Object](../topics/Object.md)
- `action`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
soldierOne switchAction "SitDown";
```

## See also

[playAction](../commands/playAction.md) · [playActionNow](../commands/playActionNow.md) · [switchMove](../commands/switchMove.md)

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