Home   Help Search Login Register  

Author Topic: description.ext\SFX  (Read 463 times)

0 Members and 1 Guest are viewing this topic.

mars7fin

  • Guest
description.ext\SFX
« on: 04 Sep 2003, 18:49:21 »
Could someone fill this right with these: vihellys.ogg, ilmapaukku.ogg

i cant do that without crashing ofp :joystick:

class CfgSFX
{
sounds[] = { examplesound };
class examplesound
{
name = "example sound";
sounds[]={sound1,sound2,sound3};
sound1[]={"mortarambient.ogg",db-0,1,0.3,5,1,10};
sound2[]={"mgunambient2.ogg",db-0,1,0.3,5,1,10};
sound3[]={"fx001.ogg", db-0,1,0.3,0,1,10};
empty[]= {};
};
};

Offline Burn

  • Members
  • *
Re:description.ext\SFX
« Reply #1 on: 06 Sep 2003, 05:35:09 »
I think it should be something like this:
=====================================================
class CfgSFX
{

   sounds[] = {ilmapaukku, vihellys};

   
   class ilmapaukku
   {
      name = "ilmapaukku";
      sounds[]={ilmapaukku};
      Ilmapuku[] = {\sound\ilmapaukku.ogg,db-0,1,0.3,5,1,10};
      empty[]={,,,,1,5,20};
   };
   class vihellys
   {
      name = "vihellys";
      sounds[]={vihellys};
      Vihellys[] = {\sound\vihellys.ogg,db-0,1,0.3,5,1,10};
      empty[]={,,,,1,5,20};
   };
};
=====================================================
U wanted it with those two sounds, right?!? ::)
 :joystick:

mars7fin

  • Guest
Re:description.ext\SFX
« Reply #2 on: 06 Sep 2003, 13:51:52 »
it still crashes back to desktop... :-[  WHY?  

Offline mcnorth

  • Members
  • *
Re:description.ext\SFX
« Reply #3 on: 12 Sep 2003, 09:32:55 »
Are you missing a semi colon in there? Does it give you any error messages like "encountered (any letter or symbol) instead of ;"?