Namespace – Talk

From Bohemia Interactive Community
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)