publicVariable: Difference between revisions
Jump to navigation
Jump to search
(see also) |
m (added to mp cat) |
||
Line 53: | Line 53: | ||
[[Category:Scripting Commands OFP 1.46|PUBLICVARIABLE]] | [[Category:Scripting Commands OFP 1.46|PUBLICVARIABLE]] | ||
[[Category:Scripting Commands ArmA|PUBLICVARIABLE]] | [[Category:Scripting Commands ArmA|PUBLICVARIABLE]] | ||
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]] |
Revision as of 18:48, 21 December 2007
Description
- 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: Following Types are supported since version ArmA v1.00: Since version ArmA v1.09:
- Multiplayer:
- The message is sent reliably to all clients. Using publicVariable a lot can cause other parts of the game to experiencing bandwidth problems.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
publicVariable "CTFscoreOne"
Additional Information
- See also:
- addPublicVariableEventHandler
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
-
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.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.34
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Multiplayer