publicVariableServer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "{{ExternalLink|" to "{{Link|") |
||
Line 36: | Line 36: | ||
[[publicVariableClient]] (run on server)<BR> | [[publicVariableClient]] (run on server)<BR> | ||
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. - {{ | 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. - {{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}} | ||
</dl> | </dl> |
Revision as of 16:24, 4 January 2023
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