Home   Help Search Login Register  

Author Topic: sound problem...  (Read 974 times)

0 Members and 1 Guest are viewing this topic.

Offline sfc.itzhak

  • Members
  • *
sound problem...
« on: 20 Apr 2007, 19:32:52 »
can someone tell me please whats wrong with my description.ext

Code: [Select]
class CfgSounds
{
  Sounds[] =
   {olim , stop , target , move , medida1 , medida2 , 1200 , matar2};
   class olim
 
  {
   name = "olim";
   sound[] = {"olim.ogg", db+0, 1.0};
   titles[] = {  };
  };
  class stop
 
  {
   name = "stop";
   sound[] = {"stop.ogg", db+0, 1.0};
   titles[] = {  };
  };
 
  class target
 
  {
   name = "target";
   sound[] = {"target.ogg", db+0, 1.0};
   titles[] = {  };
  };
  class move
 
  {
   name = "move";
   sound[] = {"move.ogg", db+0, 1.0};
   titles[] = {  };
  };
  class medida1
 
  {
   name = "medida1";
   sound[] = {"medida1.ogg", db+0, 1.0};
   titles[] = {  };
};
class medida2
 
  {
   name = "medida2";
   sound[] = {"medida2.ogg", db+0, 1.0};
   titles[] = {  };
};
  class 1200
 
  {
   name = "1200";
   sound[] = {"1200.ogg", 1, db+0.0};
   titles[] = {  };
};
class matar2
 
  {
   name = "matar2";
   sound[] = {"matar2.ogg", db+0, 1.0};
   titles[] = {  };
};
};
i try use a "[unit say "sound"]"
it gives a not found error

thanks..
« Last Edit: 20 Apr 2007, 21:19:35 by Mr.Peanut »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: sound problam...
« Reply #1 on: 20 Apr 2007, 20:14:54 »
Quick example:

Code: [Select]
class CfgSounds
{
sounds[] = {mando_missile1,mando_radar1,mando_radar2,mando_target1,mando_noammo1,mando_noammo2,mando_radaron};

class mando_missile1
{
name = "mando_missile1";
sound[] = {"mando_missile1.ogg", db-0, 1.0};
titles[] = {0};
};
class mando_radar1
{
name = "mando_radar1";
sound[] = {"mando_radar1.ogg", db-0, 1.0};
titles[] = {0};
};
class mando_radar2
{
name = "mando_radar2";
sound[] = {"mando_radar2.ogg", db-0, 1.0};
titles[] = {0};
};
class mando_target1
{
name = "mando_target1";
sound[] = {"mando_target1.ogg", db-0, 1.0};
titles[] = {0};
};
class mando_noammo1
{
name = "mando_noammo1";
sound[] = {"mando_noammo1.ogg", db-0, 1.0};
titles[] = {0};
};
class mando_noammo2
{
name = "mando_noammo2";
sound[] = {"mando_noammo2.ogg", db-0, 1.0};
titles[] = {0};
};
class mando_radaron
{
name = "mando_radaron";
sound[] = {"mando_radaron.ogg", db-0, 1.0};
titles[] = {0};
};
class mando_radaroff
{
name = "mando_radaroff";
sound[] = {"mando_radaroff.ogg", db-0, 1.0};
titles[] = {0};
};
};

Every sound is present as .ogg (mono, not stereo) file in missionname/Sound folder.

Then just
Code: [Select]
anyobjectorunit say "mando_radar1" for example.

Offline sfc.itzhak

  • Members
  • *
Re: sound problam...
« Reply #2 on: 20 Apr 2007, 20:20:21 »
thanks the not found error is gone but now i cant hear my sound at all...

thanks in advance