How do i make it sound like its coming from a room - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: How do i make it sound like its coming from a room (/thread-8041.html) |
How do i make it sound like its coming from a room - Henriksen - 05-16-2011 Hi, Im not sure if this is in the right thread. But, I was wondering if anybody know how to make it sounds like a sound is coming from a room. RE: How do i make it sound like its coming from a room - laser50 - 05-16-2011 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. RE: How do i make it sound like its coming from a room - Henriksen - 05-16-2011 (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. Ill try, thanks for the quick response ^^ RE: How do i make it sound like its coming from a room - Roenlond - 05-16-2011 PlaySoundAtEntity("", "SoundFile.snt", "EntityToPlaySoundAt", 1.0f, false); The "EntityToPlaySoundAt" determines where the sound comes from. RE: How do i make it sound like its coming from a room - Rownbear - 05-16-2011 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) RE: How do i make it sound like its coming from a room - Henriksen - 05-16-2011 Hi I got it working but the sound keeps repeating itself how do i prevent this? RE: How do i make it sound like its coming from a room - Rownbear - 05-17-2011 I think there is a stopsound function you can use for that, dont know exactly tho sorry RE: How do i make it sound like its coming from a room - MrBigzy - 05-17-2011 StopSound("soundname", 1); 1 would be the fade time for the sound to fade out. RE: How do i make it sound like its coming from a room - Kyle - 05-17-2011 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); |