Filip5 10 Posted October 16, 2010 (edited) hi,my question is:What is script for adding multiple music into mission.I used this at one song, class CfgMusic { tracks[] = {}; class runaway { name = "Úvod"; sound[] = {"\music\Úvod.ogg", db+10, 1.0}; }; }; but i cant get it worked with more than one. Any solutions? Thanks And also,anyone can tell me how to add picture to loading screen? Edited October 16, 2010 by Filip5 Share this post Link to post Share on other sites
Koni 1 Posted October 16, 2010 (edited) This is my CfgMusic block from the description file class CfgMusic { // List of sounds (.ogg files without the .ogg extension) sounds[] = {track1, track2}; // Definition for each sound class track1 { name = "Track 1"; // Name for mission editor sound[] = {\music\OFPTrack15.ogg, db+0.9, 1.0}; titles[] = { }; }; class track2 { name = "Track 2"; // Name for mission editor sound[] = {\music\Bhd.ogg, db+0.9, 1.0}; titles[] = { }; }; class track3 { name = "Track 3"; // Name for mission editor sound[] = {\music\Enigma.ogg, db+8, 1.0}; titles[] = { }; }; class track4 { name = "Track 4"; // Name for mission editor sound[] = {\music\BT1.ogg, db+10, 1.0}; titles[] = { }; }; class track5 { name = "Track 5"; // Name for mission editor sound[] = {\music\Avem.ogg, db+0.9, 1.0}; titles[] = { }; }; class track6 { name = "Track 6"; // Name for mission editor sound[] = {\music\CAveM.ogg, db+0.9, 1.0}; titles[] = { }; }; class track7 { name = "Track 7"; // Name for mission editor sound[] = {\music\why.ogg, db+0.6, 1.0}; titles[] = { }; }; class track8 { name = "Track 8"; // Name for mission editor sound[] = {\music\ap13.ogg, db+0.5, 1.0}; titles[] = { }; }; class track9 { name = "Track 9"; // Name for mission editor sound[] = {\music\ap132.ogg, db+0.5, 1.0}; titles[] = { }; }; }; Looks like you might have one to many }; before starting the next class entry, as you only have }; }; at the end of the CfgMusic list, and just one }; before starting the next entry. Edited October 16, 2010 by Koni Share this post Link to post Share on other sites
Filip5 10 Posted October 17, 2010 Thanks,it works great Share this post Link to post Share on other sites