saveProfileNamespace: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| TKOH | | TKOH | ||
|1.00 | |1.00 | ||
|gr1= System | |gr1= System | ||
| Saves all variables stored in [[profileNamespace]] to the (persistently stored) active [[Profile]]. | | Saves all variables stored in [[profileNamespace]] to the (persistently stored) active [[Profile]]. | ||
Line 11: | Line 11: | ||
{{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).}} | {{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.}} | ||
| '''saveProfileNamespace''' | | '''saveProfileNamespace''' | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[profileNamespace]] [[setVariable]] ["TAG_lastPlayerLocation", [[getPosASL]] [[player]]]; | |x1= <code>[[profileNamespace]] [[setVariable]] ["TAG_lastPlayerLocation", [[getPosASL]] [[player]]]; | ||
[[saveProfileNamespace]];</code> | [[saveProfileNamespace]];</code> | ||
| [[profileNamespace]], [[Profile]] | | [[profileNamespace]], [[Profile]] | ||
}} | }} | ||
Revision as of 11:03, 18 January 2021
Description
- Description:
- Saves all variables stored in profileNamespace to the (persistently stored) active Profile.
- 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.