saveProfileNamespace
- Arma 3 v0.50
- First in Take On Helicopters v1.00
Command · also in Variables · Markdown · JSON · original wiki page
Description
Saves all variables stored in profileNamespace to the active Profile.
Note
This command should be used when it is likely that the game will not be closed the usual way (e.g. via Alt+F4) or when the data is important and must not be lost due to a game crash.
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).
- Do not save large amounts of data to the profile; the larger the profile file gets, the slower it loads!
- The profileNamespace is saved automatically when the game is closed.
Note
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.
Syntax
saveProfileNamespace
Returns: Nothing
Examples
Example 1
profileNamespace setVariable ["TAG_lastPlayerLocation", getPosASL player];
saveProfileNamespace; // Optional since namespace is saved when game is closed
See also
saveMissionProfileNamespace · save3DENPreferences · profileNamespace · Profile