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:
paramClass: String - class name of one of Mission ParametersdefalutValue: Number - (Optional, default 0) default value to return if ''paramClass does not exist
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