profileNamespace

Operand types

None

Type of returned value

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.Arma3profile (e.g. in the My DocumentsArma 3 folder).

Used In

Arma3

Example

profileNamespace setVariable ["var_kills",10000];
_playerKills = profileNamespace getVariable "var_kills";
Search OFPEC COMREF