The return value can be overwritten by the forcedDifficulty by the server if it is a MP session.
Description
Returns high-level selected difficulty mode.
Syntax
difficulty
Returns: Number - Can be one of:
- 0 (Recruit)
- 1 (Regular)
- 2 (Veteran)
- 3 (Elite)
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