saveMissionProfileNamespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
No edit summary
Line 6: Line 6:
|arg=
|arg=


|eff=
|eff= local


|serverExec=
|serverExec=
Line 12: Line 12:
|branch= dev
|branch= dev


|descr= Description
|descr= [[missionProfileNamespace]] provides long term storage solution for mission variables. When this namespace has variables set with [[setVariable]] and is saved, the variables are saved into <tt><[[missionName]]>.vars</tt> file into current soldier [[profileName]] folder. Next time when the same mission is loaded by the client with the same soldier profile, the saved variables can be read normally with [[getVariable]] command. This way each mission maker can create persistent data that is both mission and soldier profile specific. This is default behaviour. The file is only created when save operation is invoked with this command.
<br><br>
It is also possible to share the same mission profile variables between several missions. To override default behaviour one needs to create an entry <tt>missionGroup = "MyMissionCollectionName";</tt> in the [[description.ext]]. This will create <tt>MyMissionCollectionName.vars</tt> file for example, instead of default one, which would be loaded into every mission with matching 'missionGroup' entry.


|gr1= Variables
|gr1= Variables

Revision as of 15:48, 18 March 2022

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.10.

Description

Description:
missionProfileNamespace provides long term storage solution for mission variables. When this namespace has variables set with setVariable and is saved, the variables are saved into <missionName>.vars file into current soldier profileName folder. Next time when the same mission is loaded by the client with the same soldier profile, the saved variables can be read normally with getVariable command. This way each mission maker can create persistent data that is both mission and soldier profile specific. This is default behaviour. The file is only created when save operation is invoked with this command.

It is also possible to share the same mission profile variables between several missions. To override default behaviour one needs to create an entry missionGroup = "MyMissionCollectionName"; in the description.ext. This will create MyMissionCollectionName.vars file for example, instead of default one, which would be loaded into every mission with matching 'missionGroup' entry.
Groups:
Variables

Syntax

Syntax:
saveMissionProfileNamespace
Return Value:
Nothing

Examples

Example 1:
saveMissionProfileNamespace;

Additional Information

See also:
missionProfileNamespace isMissionProfileNamespaceLoaded saveProfileNamespace

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note