---
name: "difficulty"
type: command
status: ok
groups: ["Difficulty"]
arma3_since: "0.56"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/difficulty
revid: 353045
updated: 2024-03-12T12:13:06Z
---

# difficulty

*Command · Difficulty · Arma 3 v0.56*

## Description

Returns high-level selected difficulty mode.

## Syntax

```sqf
difficulty
```

**Returns:** [Number](../topics/Number.md) - Can be one of:
- 0 (Recruit)
- 1 (Regular)
- 2 (Veteran)
- 3 (Elite)

## Examples

### Example 1

```sqf
if (difficulty == 0) then
{
    hint "You will need to follow my lead - read the Field Manual!";
};
```

### Example 2

The command returns the index of selected difficulty as they appear in *CfgDifficulties*:

```sqf
hint str difficulty; //Result: 4
```

## See also

[difficultyOption](../commands/difficultyOption.md) · Arma 3: Difficulty Settings · [missionDifficulty](../commands/missionDifficulty.md)

## Community notes

**POLPOX** — 2023-08-22

The return value can be overwritten by the forcedDifficulty by the server if it is a MP session.

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