Arma 3 Scripting

BIS_fnc_setServerVariable

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Description

Set variable stored only on server. Clients can the download it using BIS_fnc_getServerVariable. Used when you want to share variables only to specific clients to prevent large traffic.

Syntax

[namespace, varName, value] call BIS_fnc_setServerVariable

Parameters:

Returns: Boolean - true when done

Examples

Example 1

[nil, "playerHealth", damage player] call BIS_fnc_setServerVariable;

Example 2

[player, "playerHealth", damage player] call BIS_fnc_setServerVariable;

See also

BIS_fnc_getServerVariable · publicVariableServer · publicVariableClient