saveProfileNamespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Some improvements to the description, added links to the Profile page)
m (Fixy fix)
Line 11: Line 11:
| Saves all variables stored in [[profileNamespace]] to the (persistently stored) active [[Profile]].
| Saves all variables stored in [[profileNamespace]] to the (persistently stored) active [[Profile]].


{{Warning|[[saveProfileNamespace]] triggers a file operation. File operations are very slow (even on SSDs), as such it is not recommended to use this command too frequently (i.e. several times per second).}}
{{Warning|This command triggers a file operation. As file operations are slow (even on SSDs), it is not recommended to use this command too frequently (i.e. several times per second).}}
{{Important|Do not save large amounts of data to the profile; the larger the profile file gets, the slower it loads!}}
{{Important|Do not save large amounts of data to the profile; the larger the profile file gets, the slower it loads!}}
{{Feature|tkoh|Heliport status (used in the Career mode for example) is stored in the file that is modified by this command, so be mindful of this to avoid losing data and progress.}}
{{Feature|tkoh|Heliport status (used in the Career mode for example) is stored in the file that is modified by this command, so be mindful of this to avoid losing data and progress.}} |DESCRIPTION=
|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''saveProfileNamespace'''|SYNTAX=
| '''saveProfileNamespace''' |SYNTAX=


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>saveProfileNamespace;</code> |=
|x1= <code>[[profileNamespace]] [[setVariable]] ["TAG_lastPlayerLocation", [[getPosASL]] [[player]]];
[[saveProfileNamespace]];</code> |EXAMPLE1=


| [[profileNamespace]], [[Profile]] |SEEALSO=
| [[profileNamespace]], [[Profile]] |SEEALSO=
}}
}}


Line 32: Line 31:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<dt class="note">Unknown
<dd class="notedate">17:34, 25 November 2011‎</dd>
<dt class="note">{{User|Joris}}</dt>
<dd class="note">Variables are also saved when the game is quit.
<dd class="note">Variables are also saved when the game is quit.


Line 39: Line 39:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Take On Helicopters: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]


[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 20:18, 27 December 2020

Hover & click on the images for description

Description

Description:
Saves all variables stored in profileNamespace to the (persistently stored) active Profile.
This command triggers a file operation. As file operations are slow (even on SSDs), it is not recommended to use this command too frequently (i.e. several times per second).
Do not save large amounts of data to the profile; the larger the profile file gets, the slower it loads!
Take On Helicopters
Heliport status (used in the Career mode for example) is stored in the file that is modified by this command, so be mindful of this to avoid losing data and progress.
Groups:
System

Syntax

Syntax:
saveProfileNamespace
Return Value:
Nothing

Examples

Example 1:
profileNamespace setVariable ["TAG_lastPlayerLocation", getPosASL player]; saveProfileNamespace;

Additional Information

See also:
profileNamespaceProfile

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

Notes

17:34, 25 November 2011‎
Joris
Variables are also saved when the game is quit.

Bottom Section