---
name: "saveMissionProfileNamespace"
type: command
status: ok
groups: ["Namespaces", "Variables"]
arma3_since: "2.10"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/saveMissionProfileNamespace
revid: 353417
updated: 2024-03-18T11:29:33Z
---

# saveMissionProfileNamespace

*Command · Namespaces, Variables · Arma 3 v2.10*

Locality: effect **local**

## Description

[missionProfileNamespace](../commands/missionProfileNamespace.md) provides long-term storage solution for mission variables.
When this namespace has variables set with [setVariable](../commands/setVariable.md) and is saved, the variables are saved into `*missionName*.vars` file into the current player's [profileName](../commands/profileName.md) folder.
Next time when the same mission is loaded by the client with the same player profile, the saved variables can be read normally with [getVariable](../commands/getVariable.md) command.
This 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.

It is also possible to share the same mission profile variables between several missions.
To override the default behaviour, create a `missionGroup` entry in [Description.ext](../topics/Description.ext.md#missiongroup), for example `missionGroup = "TAG_MyMissionCollectionName";`.
This will create `TAG_MyMissionCollectionName.vars` file instead of the default-named one, which would be loaded into every mission with a matching `missionGroup` entry.

## Syntax

```sqf
saveMissionProfileNamespace
```

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) in case of success, [false](../commands/false.md) otherwise (e.g trying to save in Eden Editor or trying to save into existing save file but the file wasn't loaded yet)

## Examples

### Example 1

```sqf
saveMissionProfileNamespace;
```

## See also

[missionProfileNamespace](../commands/missionProfileNamespace.md) · [isMissionProfileNamespaceLoaded](../commands/isMissionProfileNamespaceLoaded.md) · [saveProfileNamespace](../commands/saveProfileNamespace.md) · [save3DENPreferences](../commands/save3DENPreferences.md)

<sub>Source: [BI Community Wiki — saveMissionProfileNamespace](https://community.bistudio.com/wiki/saveMissionProfileNamespace) (revision 353417).</sub>
