difficulty: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Image:" to "[[File:")
Line 16: Line 16:
|x1= <sqf>value = difficulty;</sqf>
|x1= <sqf>value = difficulty;</sqf>
|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]]
[[File:Difficulty.jpg|400px|Note: "Insane" is a modded difficulty]]
<sqf>hint str difficulty; //Result: 4</sqf>
<sqf>hint str difficulty; //Result: 4</sqf>



Revision as of 23:11, 20 November 2023

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
POLPOX - c
Posted on Aug 22, 2023 - 06:31 (UTC)
The return value can be overwritten by the forcedDifficulty by the server if is a MP session.