difficulty: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
|gr1= Difficulty | |gr1= Difficulty | ||
|descr= Returns high-level selected difficulty mode. | |descr= Returns high-level selected difficulty mode. | ||
|s1= [[difficulty]] | |||
| | |r1= [[Number]] - Can be one of: | ||
* 0 (Recruit) | |||
* 1 (Regular) | |||
* 2 (Veteran) | |||
* 3 (Elite) | |||
| | |x1= <sqf> | ||
if (difficulty == 0) then | |||
{ | |||
hint "You will need to follow my lead - read the Field Manual!"; | |||
}; | |||
</sqf> | |||
|x2= [[File:Difficulty.jpg|400px|thumb|Note: "Insane" is a modded difficulty]] The command returns the index of selected difficulty as they appear in ''CfgDifficulties'': | |||
|x2= | <sqf>hint str difficulty; //Result: 4</sqf> | ||
[[ | |||
< | |||
|seealso= [[difficultyOption]] [[Arma 3: Difficulty Settings]] [[missionDifficulty]] | |seealso= [[difficultyOption]] [[Arma 3: Difficulty Settings]] [[missionDifficulty]] | ||
}} | |||
{{Note | |||
|user= POLPOX | |||
|timestamp= 20230822063121 | |||
|text= The return value can be overwritten by the [[Arma 3: Server Config File|forcedDifficulty]] by the server if it is a MP session. | |||
}} | }} |
Latest revision as of 13:13, 12 March 2024
Description
- Description:
- Returns high-level selected difficulty mode.
- Groups:
- Difficulty
Syntax
- Syntax:
- difficulty
- Return Value:
- Number - Can be one of:
- 0 (Recruit)
- 1 (Regular)
- 2 (Veteran)
- 3 (Elite)
Examples
- Example 1:
- Example 2:
- The command returns the index of selected difficulty as they appear in CfgDifficulties:
Additional Information
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
- Posted on Aug 22, 2023 - 06:31 (UTC)
- The return value can be overwritten by the forcedDifficulty by the server if it is a MP session.