profileNamespace

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Take On Helicopters version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Take On Helicopters
Version:
1.00

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).

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

Multiplayer:
-
See also:
saveProfileNamespacemissionNamespaceuiNamespaceparsingNamespacecurrentNamespacewithForward Compatibility

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Unknown
The variables are loaded when the user profile is loaded or changed.

Bottom Section