Jump to navigation Jump to search
- Reliably broadcasts missionNamespace variable and its current value to all computers (server/client).
Variables broadcast with publicVariable during a mission will be available to JIP clients with the value they held at the time.
Such variables are persistent and sent to the JIP client before the first batch of client-side Event Scripts (such as init.sqf) is run.
The following Data Types are supported:
Type Number Boolean Object Group String Text Array Code Nothing (nil) HashMap Since 1.34 1.00 1.09 1.26 2.02
- publicVariable varName
- varName: String - the global variable's Identifier
- Return Value:
- Example 1:
- Example 2:
- JIP example:
- Example 3:
- See also:
- Multiplayer Scripting Initialisation Order addPublicVariableEventHandler publicVariableClient publicVariableServer Global Variable Event Scripts Join In Progress