OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: buzzboy762 on 25 Aug 2002, 04:13:59

Title: Really simple question
Post by: buzzboy762 on 25 Aug 2002, 04:13:59
Look this is a really noobish question but I still havent figured it out yet. I just want to know how to put my own music into a mission. I think it'd be neat to play the top gun theme while in a big dogfight(actually thats what im trying to do).
Title: Re:Really simple question
Post by: Wolf on 25 Aug 2002, 04:34:17
Create a folder in your missions folder called music.
Then, place your music file in the folder, it must be in .ogg format.

Then create a Description.ext file and place this in it.

class CfgMusic
{
      tracks[]={music};

      class music
      {
            name = "Whateveryouwantthemusicfiletobefoundunder";
            sound[] = {\music\Musicfilename.ogg,db+30, 1.0};
      };
};

Hope that helps.
Just remeber to replace the Musicfilename with the name of the music file.
And it will appear in a trigger or waypoint under music.
Or you can use the Playmusic command.
I also believe this belongs in the Sounds and Cutscens forum.