User Tools

Site Tools


arma2:missions:userconfig

ArmA 2 HOWTO Use Userconfig

ArmA 2 Forum, ArmA 2 Home, ArmA 2 Config, ArmA 2 File Formats, ArmA 2 Missions, ArmA 2 3D Modeling, ArmA 2 Scripting, ArmA 2 Terrain, ArmA 2 Texturing, 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.

arma2/missions/userconfig.txt · Last modified: 2024/08/01 21:33 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.