Skip to content
Kex edited this page Jul 15, 2018 · 19 revisions

Notes:

  • You can add custom music, which is available in the "Music" module. In order to get it working properly, you have to define the "name", "duration" and "musicClass" attributes in your custom music class.
  • The code below can either be in the config.cpp of your addon or the description.ext of your mission. Note the difference in the path syntax for each case.
  • More information about custom music in missions is available on the BIKI.

Example:

class cfgMusic
{
	tracks[] = {};

	class ArmA2_Reforger
	{
		// Display Name
		name = "ArmA2 Reforger";

		// Given in seconds; Is converted to mm:ss format when displayed in the Zeus interface.
		duration = 155;

		// Music category (default available: "Lead", "Action", "Stealth" or "Calm")
		musicClass = "Lead";

		// Use this path syntax when you refer to a file in the music folder of your mission.
		sound[] = {"music\Ambient08_Reforger.ogg", db+10, 1.0};

		// Use this path syntax when you refer to a file in the music folder of your addon.
		sound[] = {"\<pbo prefix>\music\Ambient08_Reforger.ogg", db+10, 1.0};
	};
};