problem in description.ext with sound

borntobeamuffin

New Member
Hi @all,
i use an intro Sound for the CamtoSpawn sequenz and also use the Trains Script, now i have the problem that both use the same variable in descriptions.ext :

Code:
class CfgSounds
{
    sounds[] = {};
 
    class NoSound
    {
    name = "NoSound";
        sound[] = {"", 0, 1};
        titles[] = {};
    };
 
#include "Scripts\Train\sounds.hpp"
};
//class CfgSounds
//{
//    sounds[] =
//    {
//    introSong
//    };
//    class introSong
//    {
//    name="introSong";
//    sound[]={introSong.ogg,0.9,1};
//    titles[] = {};
//    };
//};

I commentet the IntroSound for a working Train sound, but still have no working "idea" for both still working.

Any ideas ?
 
i found the solution by myself ;)

Code:
class CfgSounds
{
    sounds[] =
    {
    introSong
    };
    class introSong
    {
    name="introSong";
    sound[]={introSong.ogg,0.9,1};
    titles[] = {};
    };
 
    class NoSound
    {
    name = "NoSound";
        sound[] = {"", 0, 1};
        titles[] = {};
    };
    #include "Scripts\Train\sounds.hpp"
};
 
Back
Top