publicVariableServer

From Bohemia Interactive Community
Revision as of 02:06, 24 August 2012 by Kylania (talk | contribs) (New command missing from the wiki.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Send the variable value to the server. Only type Number is supported in versions 1.33 and before. The following types are supported since 1.34: Number, Boolean, Object and Group.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
publicVariableServer "CTFscoreOne";

Additional Information

See also:
publicVariablepublicVariableClient

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

Notes

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