OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Raven on 28 Aug 2002, 21:38:10

Title: More Music
Post by: Raven on 28 Aug 2002, 21:38:10
Hi Guy

Help please. How do i get more than one piece of my own music into a mission, I've got one in but I'm having problems with a second/third etc. Is it possible, and if so, can someone help with the script.

Thanks
Title: Re:More Music
Post by: Black_Feather on 29 Aug 2002, 04:25:50
class CfgMusic
{
     tracks[]={mymusic1, mymusic2, mymusic3};


     class mymusic1
     {
     name = "";
     sound[] = {\music\mymusic1.ogg, db+10, 1.0};
     };

     class mymusic2
     {
     name = "";
     sound[] = {\music\mymusic2.ogg, db+10, 1.0};
     };

     class mymusic3
     {
     name = "";
     sound[] = {\music\mymusic3.ogg, db+10, 1.0};
     };

};
Title: Re:More Music
Post by: Raven on 29 Aug 2002, 19:37:11
Thanks Black Feather worked a treat.