publicVariableServer: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category:[cC]ommand[_ ][gG]roup:[_ ][^|]+\|\{*uc:{{PAGENAME}*]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2oa | | arma2oa | ||
|1.62 | |1.62 | ||
|gr1 = Multiplayer | |gr1 = Multiplayer | ||
|gr2 = Variables | |gr2 = Variables | ||
| Send the variable value to the server - same limitations regarding variable type as [[publicVariable#Description|publicVariable]]. <br><br> | | Send the variable value to the server - same limitations regarding variable type as [[publicVariable#Description|publicVariable]]. <br><br> | ||
{{Feature|arma3|In Arma 3 it is possible to broadcast [[nil]] value}} | {{Feature|arma3|In Arma 3 it is possible to broadcast [[nil]] value}} | ||
| '''publicVariableServer''' varName | | '''publicVariableServer''' varName | ||
|p1= varName: [[String]] | |p1= varName: [[String]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>'''publicVariableServer''' "CTFscoreOne";</code> | |x1= <code>'''publicVariableServer''' "CTFscoreOne";</code> | ||
| [[publicVariable]], [[publicVariableClient]], [[addPublicVariableEventHandler]] | | [[publicVariable]], [[publicVariableClient]], [[addPublicVariableEventHandler]] | ||
}} | }} |
Revision as of 01:27, 18 January 2021
Description
- Description:
- Send the variable value to the server - same limitations regarding variable type as publicVariable.
- Groups:
- MultiplayerVariables
Syntax
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
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
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.62
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Multiplayer
- Command Group: Variables
- Arma 2: Operation Arrowhead: New Scripting Commands List
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands