Namespaces
16 scripting commands. Also as Markdown for agents.
- allVariablesReturns a list of all variables from the desired namespace.
- currentNamespaceReturns the current global namespace the script runs in.
- disableSerializationDisable saving of script containing this command. After this, the script can work with data types which do not support serialization (UI types).
- getVariableReturns the value of variable in the variable space assigned to various data types. All available data types combinations:
- isMissionProfileNamespaceLoadedThe missionProfileNamespace variables are loaded at the start of a mission, before 'init.sqf' is executed.
- localNamespaceReturns local Namespace attached to the mission. Has the same lifetime as missionNamespace but variables cannot be broadcasted out of or into this…
- missionNamespaceReturns the global namespace attached to mission.
- missionProfileNamespaceThis namespace has the same lifetime as profileNamespace but is also connected to the mission it is saved from. See saveMissionProfileNamespace for…
- parsingNamespaceReturns the global namespace attached to config parser.
- profileNamespaceReturns the global namespace attached to the active user profile. Use setVariable and getVariable to save and load data to and from this Namespace. A…
- saveMissionProfileNamespacemissionProfileNamespace provides long-term storage solution for mission variables.
- saveProfileNamespaceSaves all variables stored in profileNamespace to the active Profile.
- serverNamespaceReturns server's namespace. This namespace is only available on the server for the server's uptime duration (same as uiNamespace).
- setVariableSet variable to given value in the variable space of given element. Can be used to broadcast variables over the network.
- uiNamespaceReturns the global namespace attached to user interface.
- withCreates a With Type that is used inside a do construct in order to execute code inside a given namespace.