Jump to content
Sign in to follow this  
Sxep

Music...i know i know...

Recommended Posts

Hi

I want to include 2 songs into a mission.

Now i get kicked out of the editor because of this.

Quote[/b] ]class CfgMusic

{

tracks[]={theme};

class theme

{

name = "scarytheme";

sound[] = {\music\themesong1.ogg, db+10, 1.0};

};

tracks[]={Running};

class Running

{

name = "Runningthunder";

sound[] = {\music\RunningThunder.ogg, db+10, 1.0};

};

};

class CfgSounds

{

sounds[] =

{

Whisper, Groan

};

class whisper

{

name = "whisper";

sound[] = {"whispers.ogg", 1, 1.0};

titles[] = { };

};

};

};

can someone put it right so it should work?

Share this post


Link to post
Share on other sites

No expert by any stretch ...

but I always reference the file by the same name i.e bob.ogg , class bob, name bob    etc...

edit : actually on 2nd look, it does look a bit funky, try this :

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMusic

{

tracks[]=

{

where

};

class where

{

name = "where";

sound[] = {\music\where.ogg, db+0, 1.0};

};

};

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgMusic

{

tracks[]={theme, Running};

class theme

{

name = "scarytheme";

sound[] = {\music\themesong1.ogg, db+10, 1.0};

};

class Running

{

name = "Runningthunder";

sound[] = {\music\RunningThunder.ogg, db+10, 1.0};

};

};

class CfgSounds

{

sounds[] =

{

Whisper, Groan

};

class whisper

{

name = "whisper";

sound[] = {"whispers.ogg", 1, 1.0};

titles[] = { };

};

};

};

I think that will work, you just defined tracks twice.

RED

Share this post


Link to post
Share on other sites

Thank you both for the help..i´m trying it in 5 mins.

Another question : how can i include them permanent into the game..through a pbo?

I searched the web ..found nothing reall usefull.

Share this post


Link to post
Share on other sites

Thank you Avon but the DL at Filefront is down  sad_o.gif

Can someone gimmi another host?

Share this post


Link to post
Share on other sites

Oh and thx Red it workes just fine!

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  

×