publicVariableServer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
Lou Montana (talk | contribs) m (Fix username) |
||
(23 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2oa | |game1= arma2oa | ||
|version1= 1.62 | |||
|1. | |game2= tkoh | ||
|version2= 1.00 | |||
|game3= arma3 | |||
|version3= 0.50 | |||
|gr1= Multiplayer | |gr1= Multiplayer | ||
Line 9: | Line 14: | ||
|gr2= Variables | |gr2= Variables | ||
| Send the variable value to the server - same limitations regarding variable type as [[publicVariable#Description|publicVariable]]. | |descr= Send the variable value to the server - same limitations regarding variable type as [[publicVariable#Description|publicVariable]]. | ||
{{Feature|arma3|In | {{Feature|arma3|In {{arma3}} it is possible to broadcast the [[nil]] value.}} | ||
| | |s1= [[publicVariableServer]] varName | ||
|p1= varName: [[String]] | |p1= varName: [[String]] | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|seealso= [[publicVariable]] | |x1= <sqf>publicVariableServer "CTFscoreOne";</sqf> | ||
|seealso= [[publicVariable]] [[publicVariableClient]] [[addPublicVariableEventHandler]] | |||
}} | }} | ||
{{Note | |||
|user= Kylania | |||
|timestamp= 20120824020600 | |||
|text= | |||
[[publicVariableServer]] (run on client) | * [[publicVariableServer]] (run on client) | ||
[[publicVariableClient]] (run on server) | * [[publicVariableClient]] (run on server) | ||
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. - {{Link|link= http://forums.bistudio.com/showthread.php?136494-ARMA-2-OA-beta-build-94209-(1-60-MP-compatible-build-post-1-60-release)&p=2179795&viewfull=1#post2179795|text= Rocket}} | |||
}} | |||
Latest revision as of 00:08, 30 April 2024
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 Aug 24, 2012 - 02:06 (UTC)
-
- publicVariableServer (run on client)
- publicVariableClient (run on server)