Namespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added details)
(profilenamespace added)
Line 9: Line 9:
These statements return the "Namespace" type:
These statements return the "Namespace" type:


;[[parsingNamespace]]: Return the global namespace attached to config Parser
*[[parsingNamespace]]
;[[missionNamespace]]: Return the global namespace attached to the mission
:Return the global namespace attached to config Parser
;[[uiNamespace]]: Return the global namespace attached to the user interface
*[[missionNamespace]]
:Return the global namespace attached to the mission
*[[uiNamespace]]
:Return the global namespace attached to the user interface
*[[profileNamespace]] (introduced with Take On Helicopters 1.00)
:Return the global namespace attached to the user profile
 


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

Revision as of 23:56, 25 November 2011

Description:

Namespace - set of variables.

Introduced with Armed Assault 2.

Get namespace

These statements return the "Namespace" type:

Return the global namespace attached to config Parser
Return the global namespace attached to the mission
Return the global namespace attached to the user interface
Return the global namespace attached to the user profile


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

Set 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.