05-16-2011, 06:04 PM
05-16-2011, 06:09 PM
In the PlaySound Thing I am sure there is a way to set where it's comming from.
(Quick copy from mine)
PlaySoundAtEntity("","break_wood_metal", "AreaBreakEffect", 0, false);
The Break_wood_metal is the sound. And the AreaBreakEffect is an area I made where the sound should be.
Hope this helped.
(Quick copy from mine)
PlaySoundAtEntity("","break_wood_metal", "AreaBreakEffect", 0, false);
The Break_wood_metal is the sound. And the AreaBreakEffect is an area I made where the sound should be.
Hope this helped.
05-16-2011, 06:10 PM
(05-16-2011, 06:09 PM)laser50 Wrote: [ -> ]In the PlaySound Thing I am sure there is a way to set where it's comming from.
(Quick copy from mine)
PlaySoundAtEntity("","break_wood_metal", "AreaBreakEffect", 0, false);
The Break_wood_metal is the sound. And the AreaBreakEffect is an area I made where the sound should be.
Hope this helped.
Ill try, thanks for the quick response ^^
05-16-2011, 06:10 PM
PlaySoundAtEntity("", "SoundFile.snt", "EntityToPlaySoundAt", 1.0f, false);
The "EntityToPlaySoundAt" determines where the sound comes from.
The "EntityToPlaySoundAt" determines where the sound comes from.
05-16-2011, 06:28 PM
You just have to put an entity in the room where you want the noise to come from and use play sound at entity, (the entity being inside that room)
05-16-2011, 06:30 PM
Hi I got it working but the sound keeps repeating itself how do i prevent this?
05-17-2011, 04:43 AM
I think there is a stopsound function you can use for that, dont know exactly tho sorry
05-17-2011, 05:06 AM
StopSound("soundname", 1);
1 would be the fade time for the sound to fade out.
1 would be the fade time for the sound to fade out.
05-17-2011, 10:37 AM
I'm not sure if this has an impact on whether it'll work or not, but when in the stop sound, the sound name is refering to the first blank in the play sound at entity. The SoundName can be made up; it is used for refering to the individual command to play this sound.
PlaySoundAtEntity("SoundName", "SoundFile", "EntityToPlaySoundAt", 1, false);
Then have:
StopSound("SoundName", 1);
PlaySoundAtEntity("SoundName", "SoundFile", "EntityToPlaySoundAt", 1, false);
Then have:
StopSound("SoundName", 1);