Arma 3 Scripting

Command in Difficulty

difficulty

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns high-level selected difficulty mode.

Syntax

difficulty

Returns: Number - Can be one of:

Examples

Example 1

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:

hint str difficulty; //Result: 4

See also

difficultyOption · Arma 3: Difficulty Settings · missionDifficulty

Community notes

POLPOX

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