Jump to content
Sign in to follow this  
Filip5

How to write in multiple music?

Recommended Posts

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 by Filip5

Share this post


Link to post
Share on other sites

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 by Koni

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×