profileNamespace: 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 - "\[\[Category:Take[ _]On[ _]Helicopters:[ _]New[ _]Scripting[ _]Commands[ _]List(\|[^]]+)?\]\] " to "") |
||
Line 34: | Line 34: | ||
{{GameCategory|tkoh|Scripting Commands}} | {{GameCategory|tkoh|Scripting Commands}} | ||
[[Category:Arma 2: Operation Arrowhead: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] | [[Category:Arma 2: Operation Arrowhead: New Scripting Commands List|{{uc:{{PAGENAME}}}}]] |
Revision as of 11:17, 18 January 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. In order to make variables save permanently, use saveProfileNamespace before the game is over. The variables are stored next to the user profile in a file named myUsername.vars.GAMENAME (e.g. in the My Documents\Take On Helicopters folder).
- 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
Notes
- Unknown
- The variables are loaded when the user profile is loaded or changed.