difficulty: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
Line 14: Line 14:
|r1= [[Number]]
|r1= [[Number]]


|x1= <code>value = [[difficulty]];</code>
|x1= <code>value = difficulty;</code>
|x2= The command returns the index of selected difficulty as they appear in ''CfgDifficulties''
|x2= The command returns the index of selected difficulty as they appear in ''CfgDifficulties''
[[Image:Difficulty.jpg|400px|Note: "Insane" is a modded difficulty]]
[[Image:Difficulty.jpg|400px|Note: "Insane" is a modded difficulty]]
<code>[[hint]] [[str]] [[difficulty]]; //Result: 4</code>
<code>hint [[str]] [[difficulty]]; //Result: 4</code>


|seealso= [[difficultyOption]] [[Arma 3: Difficulty Settings]] [[missionDifficulty]]
|seealso= [[difficultyOption]] [[Arma 3: Difficulty Settings]] [[missionDifficulty]]
}}
}}

Revision as of 12:02, 12 May 2022

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:
difficultyOption Arma 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