BIS fnc getServerVariable: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - " |exec= call " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=") |
||
Line 14: | Line 14: | ||
|p2= varName: [[String]] - Variable name | |p2= varName: [[String]] - Variable name | ||
|p3= default: [[Anything]] - Default value returned when variable is [[nil]] | |p3= default: [[Anything]] - Default value returned when variable is [[nil]] | ||
| [[Anything]] - Default value or saved variable | |r1=[[Anything]] - Default value or saved variable | ||
|x1= <code><nowiki>[</nowiki>[[missionNamespace]], "BIS_someVar", "defaultValue"] [[call]] [[BIS_fnc_getServerVariable]];</code> | |x1= <code><nowiki>[</nowiki>[[missionNamespace]], "BIS_someVar", "defaultValue"] [[call]] [[BIS_fnc_getServerVariable]];</code> | ||
| [[getVariable]], [[setVariable]], [[allVariables]]|SEEALSO= }} | | [[getVariable]], [[setVariable]], [[allVariables]]|SEEALSO= }} |
Revision as of 20:24, 10 June 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Variables
Syntax
- Syntax:
- Syntax needed
- Parameters:
- target: Namespace, Object or Group - Variable name space
- varName: String - Variable name
- default: Anything - Default value returned when variable is nil
- Return Value:
- Anything - Default value or saved variable
Examples
- Example 1:
[missionNamespace, "BIS_someVar", "defaultValue"] call BIS_fnc_getServerVariable;
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