---
name: "currentCommand"
type: command
status: ok
groups: ["Unit Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/currentCommand
revid: 318985
updated: 2022-05-13T09:22:08Z
---

# currentCommand

*Command · Unit Control · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

Return the current command type (empty string when no command) for the commander of given vehicle (or for a given soldier). Returned value can be one of:
- "WAIT"
- "ATTACK"
- "HIDE"
- "MOVE"
- "HEAL"
- "REPAIR"
- "REFUEL"
- "REARM"
- "SUPPORT"
- "JOIN"
- "GET IN"
- "FIRE"
- "GET OUT"
- "STOP"
- "EXPECT"
- "ACTION"
- "ATTACKFIRE"
- "Suppress"

## Syntax

```sqf
currentCommand vehicleName
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_command = currentCommand player;
```

## See also

[commandFire](../commands/commandFire.md) · [commandMove](../commands/commandMove.md) · [commandSuppressiveFire](../commands/commandSuppressiveFire.md) · [join](../commands/join.md)

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