difficulty: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Difficulty |GROUP1= | |gr1= Difficulty |GROUP1= | ||
| Returns high-level selected difficulty mode. | | Returns high-level selected difficulty mode. | ||
Returned value will be: 0 (Recruit), 1 (Regular), 2 (Veteran) or 3 (Elite)|DESCRIPTION= | Returned value will be: 0 (Recruit), 1 (Regular), 2 (Veteran) or 3 (Elite)|DESCRIPTION= | ||
| '''difficulty''' |SYNTAX= | | '''difficulty''' |SYNTAX= | ||
Line 24: | Line 21: | ||
<code>[[hint]] [[str]] [[difficulty]]; //Result: 4</code>|EXAMPLE2= | <code>[[hint]] [[str]] [[difficulty]]; //Result: 4</code>|EXAMPLE2= | ||
| [[difficultyOption]], [[Arma 3 Difficulty Menu]] [[missionDifficulty]] |SEEALSO= | | [[difficultyOption]], [[Arma 3 Difficulty Menu]] [[missionDifficulty]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 00:43, 17 January 2021
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
hint str difficulty; //Result: 4
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