BIS fnc getParamValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *([^=\| ]+) * \|p1=" to " |s1= $1 |p1=") |
Lou Montana (talk | contribs) m (Text replacement - " \| *([^= ]+) * +\|s2=" to " |r1=$1 |s2=") |
||
Line 13: | Line 13: | ||
|p1= paramClass: [[String]] - class name of one of [[Arma 3 Mission Parameters]] | |p1= paramClass: [[String]] - class name of one of [[Arma 3 Mission Parameters]] | ||
|[[Number]] - param value. Default: 0 | |r1=[[Number]] - param value. Default: 0 | ||
|s2= [paramClass, defaultValue] call [[BIS_fnc_getParamValue]]; | |s2= [paramClass, defaultValue] call [[BIS_fnc_getParamValue]]; |
Revision as of 00:19, 13 June 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Mission Parameters
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