publicVariableServer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Fix username)
 
Line 29: Line 29:


{{Note
{{Note
|user= Kyliana
|user= Kylania
|timestamp= 20120824020600
|timestamp= 20120824020600
|text=
|text=

Latest revision as of 00:08, 30 April 2024

Hover & click on the images for description

Description

Description:
Send the variable value to the server - same limitations regarding variable type as publicVariable.
Arma 3
In Arma 3 it is possible to broadcast the nil value.
Groups:
MultiplayerVariables

Syntax

Syntax:
publicVariableServer varName
Parameters:
varName: String
Return Value:
Nothing

Examples

Example 1:
publicVariableServer "CTFscoreOne";

Additional Information

See also:
publicVariable publicVariableClient addPublicVariableEventHandler

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Kylania - c
Posted on Aug 24, 2012 - 02:06 (UTC)
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. - Rocket