Jump to content
  • 0

disc ext not working


tvpo

Question

can anyone help me so this actually works 

 

class CfgSounds
{
    sounds[] = {siren};
    class siren
    {
name = "siren";
sound[] = {Scripts\sirens\siren.ogg,0.5,1};
titles[] = {};
    };
};
class CfgSounds
{
    sounds[] =
    {
    introSong
    };
    class introSong
    {
    name="introSong";
    sound[]={introSong.ogg,0.9,1};
    titles[] = {};
    };
};
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You cannot have the same classname twice (class CfgSounds).

 

You define CfgSounds only once and in this class you create the other classes (introsong, siren,...).

 

Example:

class CfgSounds
{
    //sounds[] = {};
    sounds[] =
        {
            cureEffect,
            playerSnoring
        };
 
    class playerSnoring
    {
    name="playerSnoring";
    sound[]={\custom\sounds\snoring.ogg,0.9,1};
    titles[] = {};
    };
    class cureEffect
    {
    name="cureEffect";
    sound[]={\custom\sounds\cure_effect.ogg,0.9,1};
    titles[] = {};
    };
    class lockcar
    {
    name = "lockcar";
    sound[] = {\custom\sounds\lockcar.ogg,0.1,1,40};
    titles[] = {};
    };
    class lockbeep
    {
    name = "lockbeep";
    sound[] = {\custom\sounds\lockbeep.ogg,0.1,1,40};
    titles[] = {};
    };
};

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...