{"name":"saveMissionProfileNamespace","operator":null,"title":"saveMissionProfileNamespace","type":"command","url":"https://community.bistudio.com/wiki/saveMissionProfileNamespace","revid":353417,"updated":"2024-03-18T11:29:33Z","groups":["Namespaces","Variables"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.10"}],"since":{"game":"arma3","name":"Arma 3","version":"2.10"},"arma3_since":"2.10","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"missionProfileNamespace provides long-term storage solution for mission variables.\nWhen this namespace has variables set with setVariable and is saved, the variables are saved into `*missionName*.vars` file into the current player's profileName folder.\nNext time when the same mission is loaded by the client with the same player profile, the saved variables can be read normally with getVariable command.\nThis way each mission maker can create persistent data that is both mission and player profile specific. The file is only created when the save operation is invoked with this command.\n\nIt is also possible to share the same mission profile variables between several missions.\nTo override the default behaviour, create a `missionGroup` entry in Description.ext, for example `missionGroup = \"TAG_MyMissionCollectionName\";`.\nThis will create `TAG_MyMissionCollectionName.vars` file instead of the default-named one, which would be loaded into every mission with a matching `missionGroup` entry.","syntaxes":[{"syntax":"saveMissionProfileNamespace","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Boolean","types":["Boolean"],"description":"true in case of success, false otherwise (e.g trying to save in Eden Editor or trying to save into existing save file but the file wasn't loaded yet)","text":"Boolean - true in case of success, false otherwise (e.g trying to save in Eden Editor or trying to save into existing save file but the file wasn't loaded yet)"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nsaveMissionProfileNamespace;\n```","code":["saveMissionProfileNamespace;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["missionProfileNamespace","isMissionProfileNamespaceLoaded","saveProfileNamespace","save3DENPreferences"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Namespaces","Command Group: Variables","Introduced with Arma 3 version 2.10","Scripting Commands","Scripting Commands: Local Effect"]}