BIS fnc getParamValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Text replacement - "|SYNTAX= |p21=" to "|SYNTAX2= |p21=")
Line 17: Line 17:
|[[Number]] - param value. Default: 0|RETURNVALUE=
|[[Number]] - param value. Default: 0|RETURNVALUE=


|s2= [paramClass, defaultValue] call [[BIS_fnc_getParamValue]]; |SYNTAX=
|s2= [paramClass, defaultValue] call [[BIS_fnc_getParamValue]]; |SYNTAX2=
 
|p21= paramClass: [[String]] - class name of one of [[Arma 3 Mission Parameters]]|PARAMETER2=1
|p21= paramClass: [[String]] - class name of one of [[Arma 3 Mission Parameters]]|PARAMETER2=1
|p22= defaultValue (Optional): [[Number]] - default value to return if param doesn't exist|PARAMETER2=2
|p22= defaultValue (Optional): [[Number]] - default value to return if param doesn't exist|PARAMETER2=2

Revision as of 02:34, 3 September 2019


Hover & click on the images for description

Description

Description:
Returns the value of mission param given by the class name. 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:
Uncategorised

Syntax

Syntax:
paramClass call BIS_fnc_getParamValue;
Parameters:
paramClass: String - class name of one of Arma 3 Mission Parameters
Return Value:
Number - param value. Default: 0

Alternative Syntax

Syntax:
[paramClass, defaultValue] call BIS_fnc_getParamValue;
Parameters:
paramClass: String - class name of one of Arma 3 Mission Parameters
defaultValue (Optional): Number - default value to return if param doesn't exist
Return Value:
Number - param value. Default: 0

Examples

Example 1:
_viewDistance = "ViewDistance" call BIS_fnc_getParamValue;
Example 2:
_viewDistance = ["ViewDistance", 2] call BIS_fnc_getParamValue;

Additional Information

See also:
Arma 3 Mission Parameters

Notes

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

Notes

Bottom Section