Arma 3 Scripting

BIS_fnc_getServerVariable

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

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.

Syntax

[target, varName, default] call BIS_fnc_getServerVariable

Parameters:

Returns: Anything - default value or saved variable

Examples

Example 1

[missionNamespace, "BIS_someVar", "defaultValue"] call BIS_fnc_getServerVariable;

See also

getVariable · setVariable · allVariables