Namespace – Talk

From Bohemia Interactive Community
Revision as of 11:52, 11 January 2023 by Lou Montana (talk | contribs) (Text replacement - "<code>" to "<code style="display: block">")
(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)