publicVariable: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[Category:Scripting Commands|PUBLICVARIABLE]] | [[Category:Scripting Commands|PUBLICVARIABLE]] | ||
[[Category:Scripting Commands OFP 1. | [[Category:Scripting Commands OFP 1.96|PUBLICVARIABLE]] | ||
[[Category:Scripting Commands OFP 1.46|PUBLICVARIABLE]] | [[Category:Scripting Commands OFP 1.46|PUBLICVARIABLE]] | ||
[[Category:Scripting Commands ArmA|PUBLICVARIABLE]] | [[Category:Scripting Commands ArmA|PUBLICVARIABLE]] |
Revision as of 20:58, 1 June 2006
publicVariable varName
Operand types:
varName: String
Type of returned value:
Compatibility:
Changed in version 1.34
Description:
Broadcast variable value to all computers.
Only type Number is supported in version 1.33 and before.
Following Types are supported since version 1.34:
Example:
publicVariable "CTFscoreOne"
Note:
This command broadcasts a variable to all clients, but as soon as you change the variable again, you have to use publicVariable again, as it does not automatically synchronise it.