difficulty: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:




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


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 10:30, 4 August 2013

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:
Uncategorised

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 Difficulty.jpg hint str difficulty; //Result: 4

Additional Information

See also:
See also needed

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

Notes

Bottom Section