BIS_fnc_getParamValue

From Bohemia Interactive Community
Hover & click on the images for description

Description

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".
Execution:
call
Groups:
Mission Parameters

Syntax

Syntax:
paramClass call BIS_fnc_getParamValue
Parameters:
paramClass: String - class name of one of Mission Parameters
defalutValue: Number - (Optional, default 0) default value to return if paramClass does not exist
Return Value:
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"; };

Additional Information

See also:
Mission Parameters getMissionConfigValue getMissionConfig BIS_fnc_storeParamsValues

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note