BIS_fnc_getServerVariable
Jump to navigation
Jump to search
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 spawned because communication with server takes some time.
- Execution:
- spawn
- Groups:
- Uncategorised
Syntax
- Syntax:
- [target, varName, default] spawn BIS_fnc_getServerVariable
- Parameters:
- target: Namespace, Object or Group - Variable name space
- varName: String - Variable name
- varName: Anything - Default value returned when variable is nil
- Return Value:
- Anything - Default value or saved variable
Examples
- Example 1:
[ missionNamespace, "BIS_someVar", "defaultValue"] spawn 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