Arma 3 Scripting

Command in Multiplayer, Variables

publicVariableServer

Also available as Markdown and JSON, or read the original wiki page.

Description

Send the variable value to the server - same limitations regarding variable type as publicVariable.

Note

Arma 3: In Arma 3 it is possible to broadcast the nil value.

Syntax

publicVariableServer varName

Parameters:

Returns: Nothing

Examples

Example 1

publicVariableServer "CTFscoreOne";

See also

publicVariable · publicVariableClient · addPublicVariableEventHandler

Community notes

Kylania

Publishes the variable (name as String) to the server only. Useful when you want to synchronise a variable with the server but not any other clients. -