publicVariableServer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 8: Line 8:


| 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}}|= Description  
{{Feature arma3|In Arma 3 it is possible to broadcast [[nil]] value}}|DESCRIPTION=   


____________________________________________________________________________________________
____________________________________________________________________________________________


| '''publicVariableServer''' varName |= Syntax
| '''publicVariableServer''' varName |SYNTAX=


|p1= varName: [[String]] |= Parameter 1
|p1= varName: [[String]] |PARAMETER1=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>'''publicVariableServer''' "CTFscoreOne";</code> |= Example 1
|x1= <code>'''publicVariableServer''' "CTFscoreOne";</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[publicVariable]], [[publicVariableClient]], [[addPublicVariableEventHandler]] |= See also
| [[publicVariable]], [[publicVariableClient]], [[addPublicVariableEventHandler]] |SEEALSO=


}}
}}

Revision as of 14:45, 7 April 2019

Hover & click on the images for description

Description

Description:
Send the variable value to the server - same limitations regarding variable type as publicVariable.

Arma 3
In Arma 3 it is possible to broadcast nil value
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
publicVariableServer "CTFscoreOne";

Additional Information

See also:
publicVariablepublicVariableClientaddPublicVariableEventHandler

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