saveProfileNamespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{( *)Warning( *)\|" to "{{$1Feature$2|$Warning$2|")
m (Text replacement - "([^ ])\|\$Warning( *)\|" to "$1|$2Warning$2|")
Line 9: Line 9:
| Saves all variables stored in [[profileNamespace]] to the (persistently stored) active [[Profile]].
| Saves all variables stored in [[profileNamespace]] to the (persistently stored) active [[Profile]].


{{Feature|$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).}}
{{Feature|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.}}

Revision as of 00:31, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
System

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

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

Additional Information

See also:
See also needed

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
17:34, 25 November 2011‎
Joris
Variables are also saved when the game is quit.