profileNamespace: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{uc:{{PAGENAME}}}}" to "") |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}") |
||
Line 13: | Line 13: | ||
|descr= Returns the global namespace attached to the active user profile. Use [[setVariable]] and [[getVariable]] to save and load data to and from this [[Namespace]]. A variable can be deleted by setting its value to [[nil]]. By default the variables set in this namespace will exist while the game is running and variables are saved persistently when the game is closed. Saving can also be forced by using [[saveProfileNamespace]]. | |descr= Returns the global namespace attached to the active user profile. Use [[setVariable]] and [[getVariable]] to save and load data to and from this [[Namespace]]. A variable can be deleted by setting its value to [[nil]]. By default the variables set in this namespace will exist while the game is running and variables are saved persistently when the game is closed. Saving can also be forced by using [[saveProfileNamespace]]. | ||
The variables are stored next to the user profile in a file named | The variables are stored next to the user profile in a file named {{hl|myUsername.vars.GAMENAME}}. | ||
|s1= '''profileNamespace''' | |s1= '''profileNamespace''' |
Revision as of 23:45, 15 November 2021
Description
- Description:
- Returns the global namespace attached to the active user profile. Use setVariable and getVariable to save and load data to and from this Namespace. A variable can be deleted by setting its value to nil. By default the variables set in this namespace will exist while the game is running and variables are saved persistently when the game is closed. Saving can also be forced by using saveProfileNamespace. The variables are stored next to the user profile in a file named myUsername.vars.GAMENAME.
- Groups:
- Variables
Syntax
- Syntax:
- profileNamespace
- Return Value:
- Namespace
Examples
- Example 1:
_namespace = profileNamespace;
- Example 2:
profileNamespace setVariable ["var_kills",10000]; _playerKills = profileNamespace getVariable "var_kills";
Additional Information
- See also:
- saveProfileNamespacemissionNamespaceuiNamespaceparsingNamespacecurrentNamespacelocalNamespaceallVariableswithForward Compatibility
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
- Unknown
- The variables are loaded when the user profile is loaded or changed.