---
name: "userconfig"
type: topic
source: https://community.bistudio.com/wiki/userconfig
revid: 329122
updated: 2022-07-22T15:45:59Z
---

# userconfig

## How to make a Userconfig:

Some quick notes from what I learned while trying to use it for a mission.
(a.k.a. What I wish somebody had written already) *--MaHuJa*

The **\userconfig** folder should be located in the root Arma 3 game directory, typically in your main Steam folder, \Steam\steamapps\common\Arma 3\\

**Description.ext**

```cpp
class X
{
    #include "\userconfig\MY_addon\Somefile.hpp"
};
```

**\userconfig\MY_addon\Somefile.hpp**

```cpp
class Y
{
    key = value;
};
```

**Use:**

```sqf
_userConfigValue = getNumber (missionConfigFile >> "X" >> "Y" >> "key");
```

Skipping class X means the user could introduce anything into the description.ext
Note that #include WILL fail with a CTD if the somefile.hpp doesn't exist.

[missionConfigFile](../commands/missionConfigFile.md) is used when the mission does the include from description.ext
[campaignConfigFile](../commands/campaignConfigFile.md) is similar but for a campaign
[configFile](../commands/configFile.md) is about the "global config" of unit types, vehicle types, and so on - this is the area added to by addons.

<sub>Source: [BI Community Wiki — userconfig](https://community.bistudio.com/wiki/userconfig) (revision 329122).</sub>
