Namespace

From Bohemia Interactive Community
Revision as of 18:56, 31 December 2019 by Lou Montana (talk | contribs) (Add currentNamespace)
Jump to navigation Jump to search

Template:quote

Namespace - set of variables. Introduced with Arma 2.


Get namespace

These commands return the "Namespace" type:

Game Command Description
Logo A2.png1.00 missionNamespace returns the global namespace attached to the mission
Logo A2.png1.00 parsingNamespace returns the global namespace attached to the Config Parser
Logo A2.png1.00 uiNamespace returns the global namespace attached to the user interface
tkoh logo small.png1.00 profileNamespace returns the global namespace attached to the user profile
Arma 3 logo black.png1.48 currentNamespace returns the current namespace. Can be compared with isEqualTo.

You can save values in this different Namespaces without overwriting the variables with the same name.


Get namespace data

You can use the above with getVariable to get data.


Set namespace data

You can use the above with setVariable or "with namespace do" to set data.