Namespace – Talk

From Bohemia Interactive Community
Revision as of 18:04, 6 June 2009 by HeliJunkie (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I found 3 statements that return the "Namespace" type:

parsingNamespace
Return the global namespace attached to config Parser
missionNamespace
Return the global namespace attached to the mission
uiNamespace
Return the global namespace attached to the user interface

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

missionnamespace setvariable ["testValue","someValue"]; hint format["Mission: %1\nParsing:%2", missionnamespace getVariable "testValue", parsingNamespace getVariable "testValue"];

Output: Mission: someValue Parsing: <null> --HeliJunkie 19:04, 6 June 2009 (CEST)