BIS fnc getServerVariable: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Execution" to "|Execution=") |
mNo edit summary |
||
Line 5: | Line 5: | ||
|1.00|Game version= | |1.00|Game version= | ||
|gr1= Variables |GROUP1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 38: | Line 40: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:getServerVariable}}]] | [[Category:Functions|{{uc:getServerVariable}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:getServerVariable}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:getServerVariable}}]] |
Revision as of 17:11, 9 October 2020
Description
- Description:
- Fetch a variable saved on server. Used when you want to share variables only to specific clients to prevent large traffic. Must be run in scheduled environment because communication with server takes some time.
- Execution:
- call
- Groups:
- Variables
Syntax
- Syntax:
- [target, varName, default] call BIS_fnc_getServerVariable
- 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:
- getVariablesetVariableallVariables
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