---
name: "difficultyEnabled"
type: command
status: ok
groups: ["Difficulty"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/difficultyEnabled
revid: 348496
updated: 2023-11-08T13:01:31Z
---

# difficultyEnabled

*Command · Difficulty · Arma 3 v0.50 · introduced in Armed Assault v1.05*

## Description

Checks specific difficulty settings of the current user. Difficulty flag names can be found in the ArmA profile file under class Difficulties/xxx/Flags (xxx being regular or veteran).

## Syntax

```sqf
difficultyEnabled flagName
```

**Parameters:**

- `flagName`: [String](../topics/String.md) - difficulty flag name. Following values are available:

  - 3rdPersonView
  - armor
  - autoAim
  - autoGuideAT
  - autoSpot
  - autoTrimEnabled
  - cameraShake
  - clockIndicator
  - deathMessages
  - enemyTag
  - extendetInfoType
  - friendlyTag
  - hud
  - hudGroupInfo
  - hudPerm
  - hudWp
  - hudWpPerm
  - map
  - mineTag
  - netStats
  - roughLanding
  - stanceIndicator
  - stressDamageEnabled
  - unlimitedSaves
  - vonID
  - weaponCursor
  - windEnabled

  - 3rdPersonView
  - armor
  - autoSpot
  - autoGuideAT
  - autoAim
  - allowSeagull
  - clockIndicator
  - deathMessages
  - enemyTag
  - friendlyTag
  - hud
  - hudPerm
  - hudWp
  - hudWpPerm
  - map
  - netStats
  - suppressPlayer
  - tracers
  - realisticFatigue
  - ultraAI
  - unlimitedSaves
  - weaponCursor

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

## Examples

### Example 1

```sqf
hint str (difficultyEnabled "armor");
```

### Example 2

List current difficulty settings:

```sqf
call {
    private ["_diff", "_cfg", "_flags", "_res"];
    _diff = [];
    _cfg = configFile >> "CfgDifficulties";
    {
        _flags = _cfg >> configName _x >> "Flags";
        for "_i" from 0 to count _flags - 1 do {
            _diff pushBack configName (_flags select _i);
        };
    } forEach ("true" configClasses _cfg);
    _diff = _diff arrayIntersect _diff;
    _diff sort true;
    _res = text "";
    {
        _res = composeText [_res, parseText format [
            "<t align='left'>%1 - %2</t>", 
            _x, 
            [0, 1] select difficultyEnabled _x
        ], lineBreak];
    } forEach _diff;
    hint _res;
};
```

## Multiplayer

This command checks the difficulty flags of the computer (client/server) where it is executed.

> [!NOTE]
> This command is **deprecated since Arma 3 v1.58**. Since this version it always returns false. Use [difficultyOption](../commands/difficultyOption.md) instead.
> See Arma 3 Difficulty Overhaul for further details.
> - Stress damage is a separate difficulty setting. There are two dedicated commands for it:
>   - [enableStressDamage](../commands/enableStressDamage.md)
>   - [isStressDamageEnabled](../commands/isStressDamageEnabled.md)
> - Auto trim is also a separate difficulty setting. There are also two dedicated commands for it:
>   - [enableAutoTrimRTD](../commands/enableAutoTrimRTD.md)
>   - [isAutoTrimOnRTD](../commands/isAutoTrimOnRTD.md)

## See also

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

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