difficulty

From Bohemia Interactive Community
Revision as of 22:04, 13 June 2021 by Lou Montana (talk | contribs) (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns high-level selected difficulty mode. Returned value will be: 0 (Recruit), 1 (Regular), 2 (Veteran) or 3 (Elite)
Groups:
Difficulty

Syntax

Syntax:
difficulty
Return Value:
Number

Examples

Example 1:
value = difficulty;
Example 2:
The command returns the index of selected difficulty as they appear in CfgDifficulties Note: "Insane" is a modded difficulty hint str difficulty; //Result: 4

Additional Information

See also:
difficultyOptionArma 3: Difficulty Settings missionDifficulty

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note