Arma 3 Scripting

Function in Variables

BIS_fnc_setServerVariable

Also available as Markdown and JSON, or read the 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