Jump to content
Sign in to follow this  
Yeti1

Problem loading multiple sounds

Recommended Posts

Hi all, I am having problems loading multiple sounds using triggers, it plays the first sound (car1) but not the second one (car2). It keeps coming up Car2 not found.

here is my description file contents.

class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {car1,car2};

// Definition for each sound
class car1
{
name = "car1"; // Name for mission editor
sound[] = {\sounds\car1.ogg, 0.4, 1.0};
titles[] = {0, ""};
};
class car2
{
name = "car2"; // Name for mission editor
sound[] = {\sounds\car2.ogg, 0.4, 1.0};
titles[] = {0, ""};
};
}; 

---------- Post added at 16:22 ---------- Previous post was at 15:41 ----------

Never mind got it working, hopefully this may help others who need multiple sounds..

My Description file for this mission..

class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {car1,car2,car3};

// Definition for each sound
class car1
{
name = "car1"; // Name for mission editor
sound[] = {\sounds\car1.ogg, 0.4, 1.0};
titles[] = {0, ""};
};
class car2
{
name = "car2"; // Name for mission editor
sound[] = {\sounds\car2.ogg, 0.4, 1.0};
titles[] = {0, ""};
};
class car3
{
name = "car3"; // Name for mission editor
sound[] = {\sounds\car3.ogg, 0.4, 1.0};
titles[] = {0, ""};
}; 
};

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  

×