saveProfileNamespace: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| TKOH |Game name= | | TKOH |Game name= | ||
Line 7: | Line 6: | ||
|gr1= System |GROUP1= | |gr1= System |GROUP1= | ||
| 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 14: | Line 12: | ||
{{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.}} |DESCRIPTION= | {{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= | ||
| '''saveProfileNamespace''' |SYNTAX= | | '''saveProfileNamespace''' |SYNTAX= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[profileNamespace]] [[setVariable]] ["TAG_lastPlayerLocation", [[getPosASL]] [[player]]]; | |x1= <code>[[profileNamespace]] [[setVariable]] ["TAG_lastPlayerLocation", [[getPosASL]] [[player]]]; |
Revision as of 02:11, 17 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.