saveMissionProfileNamespace: Difference between revisions
Jump to navigation
Jump to search
m (Added command group Namespaces) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 4: | Line 4: | ||
|version1= 2.10 | |version1= 2.10 | ||
| | |branch= dev | ||
|eff= local | |eff= local | ||
| | |gr1= Namespaces | ||
| | |gr2= Variables | ||
|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 | |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 {{hl|''[[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.<br><br> | ||
<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 {{hl|1= missionGroup = "MyMissionCollectionName";}} in [[Description.ext#missionGroup | Description.ext]]. This will create {{hl|MyMissionCollectionName.vars}} file for example, instead of default one, which would be loaded into every mission with matching {{hl|missionGroup}} entry. | ||
It is also possible to share the same mission profile variables between several missions. To override default behaviour one needs to create an entry | |||
|s1= [[saveMissionProfileNamespace]] | |s1= [[saveMissionProfileNamespace]] |
Revision as of 11:21, 20 March 2022
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 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:
- NamespacesVariables
Syntax
- Syntax:
- saveMissionProfileNamespace
- Return Value:
- Nothing
Examples
- Example 1:
- saveMissionProfileNamespace;
Additional Information
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