publicVariable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fixed desc)
(MP information.)
Line 5: Line 5:


|1.34|= Game version
|1.34|= Game version
|arg= global |= Arguments in MP
|eff= global |= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 26: Line 30:


|  |= See also
|  |= See also
 
| mp= There is no guarantee that the broadcasted data arrives at all clients. Data is often lost due to congestion and other network problems. |=
}}
}}



Revision as of 20:49, 31 August 2006

Hover & click on the images for description

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:
Multiplayer:
There is no guarantee that the broadcasted data arrives at all clients. Data is often lost due to congestion and other network problems.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
publicVariable "CTFscoreOne"

Additional Information

See also:
See also needed

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