missionDifficulty: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
Lou Montana (talk | contribs) (Add example) |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
|game1= arma3 | |||
| | |version1= 1.62 | ||
| | |||
|gr1= Difficulty | |gr1= Difficulty | ||
|gr2= Mission Information | |gr2= Mission Information | ||
|descr= Return difficulty that has been forced for this mission, returns -1 if difficulty is not forced and it is used one from player's options. | |||
|s1= [[missionDifficulty]] | |||
|r1= [[Number]] | |||
|x1= <sqf>private _number = missionDifficulty;</sqf> | |||
< | |||
</ | |||
|x2= <sqf> | |||
< | private _playedDifficulty = missionDifficulty; | ||
if (_playedDifficulty == -1) then | |||
{ | |||
_playedDifficulty = difficulty; | |||
}; | |||
</sqf> | |||
|seealso= [[difficultyOption]] [[difficulty]] | |||
[[ | }} |
Latest revision as of 14:02, 16 February 2023
Description
- Description:
- Return difficulty that has been forced for this mission, returns -1 if difficulty is not forced and it is used one from player's options.
- Groups:
- DifficultyMission Information
Syntax
- Syntax:
- missionDifficulty
- Return Value:
- Number
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- difficultyOption difficulty
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