Home   Help Search Login Register  

Author Topic: Localizing a sound to a unit  (Read 812 times)

0 Members and 1 Guest are viewing this topic.

sgtBerghof

  • Guest
Localizing a sound to a unit
« on: 07 Aug 2006, 07:53:48 »
Hello all, this is my first post so I hope everything works ok.

Alright here's the deal.  I want to make a few soldiers talk in a mission I'm making. 

I have this in my Sound folder of the mission:
A (talking1.ogg) and (talking1.lip)

I have this in my description.ext in the folder of the mission:
class CfgSounds
{
sounds[] = { talking1 };

class talking1
{
name = "";
sound[] = {"talking1.ogg", db+0, 1.0};
titles[] =
{
0, $STRM_talking1
};
};
};


A few things happen when I try to make this work in the editor.  The unit's name is (sol3).
When I type (this say "talking1") into the INIT line of the unit, his mouth will move but there is no sound.
When I type (sol3 say "talking1") into the INIT line of the unit, his mouth will move but there is no sound.
When I make a trigger and put CONDITION as (true) and ACTIVATION as (sol3 say "talking1") the unit's mouth will move but there will be no sound.
When I go into the effects of the trigger and select (talking1) as an anonymous sound, which by the way doesn't show up.  It's a blank line at the bottom of the anonymous sounds.  The unit's mouth will move and the sound plays.  But the sound is not coming from the unit.
Strangly enough after I create the trigger and try it that way; I can delete the trigger and go back to the unit's INIT line and enter (sol3 say "talking1") OR (this say "talking1") and the unit's mouth with move and the sound will work from there on.  But the sound is still not coming from the unit.  And I think it needs to work the first time anyways, right?

The problem is, the sound is not coming from the unit. :D  It is being broadcast over the entire map.  I would like to localize the sound.  Any advice would be most welcome.  Thank you.

sgtBerghof

  • Guest
Re: Localizing a sound to a unit
« Reply #1 on: 07 Aug 2006, 23:38:26 »
Problem solved.  After trying to make sense of all the previous posts I reliezed that my .ogg converter had converted my mono .wav file back to stereo.   :D