BIS fnc getParamValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function " to "{{RV|type=function ")
m (Text replacement - " *\| *PARAMETER[0-9]{1,3} *= * " to " ")
Line 17: Line 17:
|s2= [paramClass, defaultValue] call [[BIS_fnc_getParamValue]];
|s2= [paramClass, defaultValue] call [[BIS_fnc_getParamValue]];


|p21= paramClass: [[String]] - class name of one of [[Arma 3 Mission Parameters]]|PARAMETER21=
|p21= paramClass: [[String]] - class name of one of [[Arma 3 Mission Parameters]]
|p22= defaultValue (Optional): [[Number]] - default value to return if param doesn't exist|PARAMETER22=
|p22= defaultValue (Optional): [[Number]] - default value to return if param doesn't exist


|r2=[[Number]] - param value. Default: 0
|r2=[[Number]] - param value. Default: 0

Revision as of 18:11, 29 January 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Mission Parameters

Syntax

Syntax:
Syntax needed
Parameters:
paramClass: String - class name of one of Arma 3 Mission Parameters
Return Value:
Return value needed

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:
See also needed

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