Arma 3 Scripting

All Real Virtuality games allow you to create multiple profiles. Personal settings like video configuration, campaign progress or controls assigments are saved in profile files.

Directory

Path varies depending on a project, see following table for specific directories.

Green text means variable based on your local settings.

Icon Game Path Extension
Operation Flashpoint v1.00 Arma: Cold War Assault Arma: CWA directory\Users\ProfileName\ N/A
Armed Assault v1.00 Armed Assault
My Documents\ArmA\
My Documents\ArmA Other Profiles\ProfileName\
*.ArmAProfile
Arma 2 v1.00 Arma 2
My Documents\Arma 2\
My Documents\Arma 2 Other Profiles\ProfileName\
*.ArmA2Profile
Arma 2: Operation Arrowhead v1.50 Arma 2: Operation Arrowhead
My Documents\Arma 2\
My Documents\Arma 2 Other Profiles\ProfileName\
*.ArmA2OAProfile
Take On Helicopters v1.00 Take On Helicopters
My Documents\Take On Helicopters\
My Documents\Take On Helicopters Other Profiles\ProfileName\
*.TakeOnHProfile
Arma 3 v1.00 Arma 3
My Documents\Arma 3\
My Documents\Arma 3 - Other Profiles\ProfileName\
*.Arma3Profile

Contents

Files

Folders

Scripting (Take On Helicopters v1.00Arma 3 v1.00)

You can save any variable to the profile using profileNamespace command. This is used to preserve persistent information like character progress, resources or various mod settings.

profileNamespace setVariable ["myVariable", 1];

This will save it to namespace, but not yet to the file itself, so restarting would not preserve the variable. To mirror the namespace into the file, call:

saveProfileNamespace;

Once set, you can retrieve the variable using:

private _myVar = profileNamespace getVariable "myVariable";

Important

Do not save large amount of data to the profile: the larger the profile file gets, the slower it loads!