Arma 3 Scripting

missionDifficulty

  • Arma 3 v1.62

Command · also in Mission Information · Markdown · JSON · 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