publicVariableServer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
||
Line 16: | Line 16: | ||
|descr= Send the variable value to the server - same limitations regarding variable type as [[publicVariable#Description|publicVariable]]. {{Feature|arma3|In Arma 3 it is possible to broadcast [[nil]] value}} | |descr= Send the variable value to the server - same limitations regarding variable type as [[publicVariable#Description|publicVariable]]. {{Feature|arma3|In Arma 3 it is possible to broadcast [[nil]] value}} | ||
|s1= | |s1= [[publicVariableServer]] varName | ||
|p1= varName: [[String]] | |p1= varName: [[String]] |
Revision as of 17:10, 20 June 2021
Description
- Description:
- Send the variable value to the server - same limitations regarding variable type as publicVariable.
- Groups:
- MultiplayerVariables
Syntax
- Syntax:
- publicVariableServer varName
- Parameters:
- varName: String
- Return Value:
- Nothing
Examples
- Example 1:
publicVariableServer "CTFscoreOne";
Additional Information
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
- 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