Arma 3 Scripting

Function in Mission Parameters

BIS_fnc_getParamValue

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

Description

Returns the value of the named mission parameter. This function is global and will return selected param value on any PC including JIP. For backward compatibility it also supports "param1" and "param2".

Syntax

paramClass call BIS_fnc_getParamValue

Parameters:

Returns: Number - param value

Examples

Example 1

scoreToWin = "ScoreToWin" call BIS_fnc_getParamValue;

Example 2

_viewDistance = ["TAG_viewDistance", 500] call BIS_fnc_getParamValue;

Example 3

if (param1 == ("param1" call BIS_fnc_getParamValue)) then
{
    hint "Old timer";
};

See also

Mission Parameters · getMissionConfigValue · getMissionConfig · BIS_fnc_storeParamsValues