====== ArmA 2 HOWTO Use Userconfig ====== [[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]] **Description.ext:** class X { #include "\userconfig\somefile.hpp" }; **Userconfig\somefile.hpp:** class Y { key = value; }; **Script:** ucval = [[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 is used when the mission does the include from description.ext campaignConfigFile is similar but for a campaign configFile is about the "global config" of unit types, vehicle types, and so on, this is the area added to by addons.