profileNamespace: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 21: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>_namespace = profileNamespace;</code> |=
|x1= <code>_namespace = '''profileNamespace''';</code> |=
|x2= <code>'''profileNamespace''' [[setVariable]] ["var_kills",10000];
_playerKills = '''profileNamespace''' [[getVariable]] "var_kills";</code> |=


| [[saveProfileNamespace]] |= See also
| [[saveProfileNamespace]] |= See also

Revision as of 23:21, 10 April 2014


Hover & click on the images for description

Description

Description:
Return 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:
saveProfileNamespace

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