publicVariableServer

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2: Operation Arrowhead version 1.62
  

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.62

Description

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

Syntax

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

Examples

Example 1:
publicVariableServer "CTFscoreOne";

Additional Information

Multiplayer:
-
See also:
publicVariablepublicVariableClientaddPublicVariableEventHandler

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Posted on 24 Aug, 2012
Kylania
publicVariableServer (run on client)
publicVariableClient (run on server)
Publishers the variable (name as STRING) to the server only. Useful when you want to synchronize a variable with the server but not any other clients. - Rocket

Bottom Section