{"name":"BIS_fnc_setServerVariable","title":"BIS fnc setServerVariable","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_setServerVariable","revid":327933,"updated":"2022-07-13T12:34:00Z","groups":["Variables"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","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.","syntaxes":[{"syntax":"[namespace, varName, value] call BIS_fnc_setServerVariable","params":[{"name":"namespace","type":"Namespace, Object or Group","optional":true,"default":"missionNamespace","type_expr":"Namespace | Object | Group","text":"namespace: Namespace, Object or Group - (Optional, default missionNamespace)"},{"name":"varName","type":"String","description":"variable name","type_expr":"String"},{"name":"value","type":"Anything","description":"variable value","type_expr":"Anything"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true when done"}}],"examples":[{"code":["[nil, \"playerHealth\", damage player] call BIS_fnc_setServerVariable;"]},{"code":["[player, \"playerHealth\", damage player] call BIS_fnc_setServerVariable;"]}],"see_also":["BIS_fnc_getServerVariable","publicVariableServer","publicVariableClient"]}