---
name: "difficultyOption"
type: command
status: ok
groups: ["Difficulty"]
arma3_since: "1.58"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/difficultyOption
revid: 369140
updated: 2024-09-03T10:34:36Z
---

# difficultyOption

*Command · Difficulty · Arma 3 v1.58*

## Description

Checks specific difficulty settings of the current user.
Difficulty flag names can be found in the `CfgDifficultyPresets` config class or in ArmA profile file under class `DifficultyPresets/xxx/Options` (xxx being Recruit, Regular or Veteran).
This command replaces [difficultyEnabled](../commands/difficultyEnabled.md) as many options have multiple values and former command only provided [Boolean](../topics/Boolean.md) return.

## Syntax

### Syntax 1

```sqf
difficultyOption optionName
```

**Parameters:**

- `optionName`: [String](../topics/String.md) - difficulty option name; one of:
  - reducedDamage
  - groupIndicators
  - friendlyTags
  - enemyTags
  - detectedMines
  - commands
  - waypoints
  - weaponInfo
  - stanceIndicator
  - staminaBar
  - weaponCrosshair
  - visionAid
  - thirdPersonView
  - cameraShake
  - scoreTable
  - deathMessages
  - vonID
  - mapContent
  - autoReport
  - multipleSaves

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

### Syntax 2

*since arma3 2.14*

```sqf
difficultyOption array
```

**Parameters:**

- `array`: [Array](../topics/Array.md) - any array, could be empty array []

**Returns:** [Array](../topics/Array.md) - array of all options and current values in format [["Option1", value1], ...["OptionN", valueN]]

## Examples

### Example 1

```sqf
hint str (difficultyOption "friendlyTags");
```

### Example 2

Remember last [cameraView](../commands/cameraView.md) per vehicle:

```sqf
player addEventHandler ["GetOutMan", {
    params ["_unit", "", "_vehicle"];
    _unit setVariable [_vehicle call BIS_fnc_netId, cameraView];
}];
player addEventHandler ["GetInMan", {
    if (difficultyOption "thirdPersonView" == 2) then {
        params ["_unit", "", "_vehicle"];
        _unit switchCamera (_unit getVariable [_vehicle call BIS_fnc_netId, "INTERNAL"]);
    };
}];
```

## See also

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

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