profileNamespace: Difference between revisions
Jump to navigation
Jump to search
Waffle SS. (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) (see also) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Returns the global namespace attached to the active user profile. | ||
Use [[setVariable]] and [[getVariable]] to save and load data to this [[Namespace]]. A variable can be deleted by setting its value to [[nil]]. | Use [[setVariable]] and [[getVariable]] to save and load data to this [[Namespace]]. A variable can be deleted by setting its value to [[nil]]. | ||
Line 25: | Line 25: | ||
_playerKills = '''profileNamespace''' [[getVariable]] "var_kills";</code> |= | _playerKills = '''profileNamespace''' [[getVariable]] "var_kills";</code> |= | ||
| [[saveProfileNamespace]], [[uiNamespace]], [[parsingNamespace]], [[ | | [[saveProfileNamespace]], [[missionNamespace]], [[uiNamespace]], [[parsingNamespace]], [[currentNamespace]], [[with]], [[ArmA:_Editing#Forward_Compatibility|Forward Compatibility]] |= See also | ||
}} | }} |
Revision as of 15:18, 23 June 2015
Description
- Description:
- Returns the global namespace attached to the active user profile. Use setVariable and getVariable to save and load data to this Namespace. A variable can be deleted by setting its value to nil. The variables are stored next to the user profile in a file named myUsername.vars.TakeOnHProfile (e.g. in the My Documents\Take On Helicopters folder).
- Groups:
- Uncategorised
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:
- saveProfileNamespacemissionNamespaceuiNamespaceparsingNamespacecurrentNamespacewithForward 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
- The variables are loaded when the user profile is loaded or changed.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Take On Helicopters version 1.00
- Take On Helicopters: New Scripting Commands
- Take On Helicopters: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands Take On Helicopters
- Take On Helicopters: New Scripting Commands List
- ArmA 2 OA: New Scripting Commands List
- Scripting Commands ArmA2
- Scripting Commands Arma 3