BIS fnc getParamValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
Lou Montana (talk | contribs) m (Text replacement - "[[Arma 3: Mission Parameters" to "[[Mission Parameters") |
||
(24 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
|1.00 | |||
|gr1= Mission Parameters | |gr1= Mission Parameters | ||
|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". | |descr=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". | ||
| paramClass call [[BIS_fnc_getParamValue]] | |s1= paramClass call [[BIS_fnc_getParamValue]] | ||
|p1= paramClass: [[String]] - class name of one of [[ | |p1= paramClass: [[String]] - class name of one of [[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]] | ||
|p21= paramClass: [[String]] - class name of one of [[ | |p21= paramClass: [[String]] - class name of one of [[Mission Parameters]] | ||
|p22= defaultValue (Optional): [[Number]] - default value to return if param doesn't exist | |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 | ||
|x1= < | |x1= <sqf>private _viewDistance = "ViewDistance" call BIS_fnc_getParamValue;</sqf> | ||
|x2= < | |x2= <sqf>private _viewDistance = ["ViewDistance", 2] call BIS_fnc_getParamValue;</sqf> | ||
| [[ | |seealso= [[Mission Parameters]] [[getMissionConfigValue]] [[getMissionConfig]] [[BIS_fnc_storeParamsValues]] | ||
}} | }} | ||
Latest revision as of 17:42, 12 February 2024
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:
- Mission Parameters
Syntax
- Syntax:
- paramClass call BIS_fnc_getParamValue
- Parameters:
- paramClass: String - class name of one of 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 Mission Parameters
- defaultValue (Optional): Number - default value to return if param doesn't exist
- Return Value:
- Number - param value. Default: 0
Examples
- Example 1:
- Example 2:
Additional Information
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