Arma 3 Scripting

Command in Difficulty, Mission Information

missionDifficulty

Also available as Markdown and JSON, or read the original wiki page.

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.

Syntax

missionDifficulty

Returns: Number

Examples

Example 1

private _number = missionDifficulty;

Example 2

private _playedDifficulty = missionDifficulty;
if (_playedDifficulty == -1) then
{
    _playedDifficulty = difficulty;
};

See also

difficultyOption · difficulty