{"name":"localNamespace","operator":null,"title":"localNamespace","type":"command","url":"https://community.bistudio.com/wiki/localNamespace","revid":309258,"updated":"2022-05-04T11:01:29Z","groups":["Namespaces","Variables","Multiplayer"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.00"}],"since":{"game":"arma3","name":"Arma 3","version":"2.00"},"arma3_since":"2.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns local Namespace attached to the mission.\nHas the same lifetime as missionNamespace but variables **cannot be broadcasted** out of or into this namespace in multiplayer and will not be serialized when game is saved. UI variables can be safely stored in this namespace.\nUse allVariables command to save the variables elsewhere if required.","syntaxes":[{"syntax":"localNamespace","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Namespace","types":["Namespace"],"description":null,"text":"Namespace"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nlocalNamespace setVariable [\"abc\", 123];\n```","code":["localNamespace setVariable [\"abc\", 123];"]},{"text":"```sqf\nwith localNamespace do { hint str abc };\n```","code":["with localNamespace do { hint str abc };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["missionNamespace","uiNamespace","parsingNamespace","profileNamespace","currentNamespace","allVariables"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Multiplayer","Command Group: Namespaces","Command Group: Variables","Introduced with Arma 3 version 2.00","Scripting Commands"]}