Frictional Games Forum (read-only)
PlaySoundAtEntity not working :( (Help Needed!) - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: PlaySoundAtEntity not working :( (Help Needed!) (/thread-18825.html)

Pages: 1 2


RE: PlaySoundAtEntity not working :( I need HELP! - Statyk - 10-17-2012

A .ogg is an audio file. It is what you hear.

A .snt is a text file that organizes variables for the sound, such as volume, loop, sound distance, and what list of sounds can be played.


RE: PlaySoundAtEntity not working :( I need HELP! - 4WalledKid - 10-17-2012

(10-17-2012, 09:43 PM)Statyk Wrote: A .ogg is an audio file. It is what you hear.

A .snt is a text file that organizes variables for the sound, such as volume, loop, sound distance, and what list of sounds can be played.
And what about if I want one specific sound from the .snt? What can I do?


RE: PlaySoundAtEntity not working :( I need HELP! - FlawlessHappiness - 10-17-2012

I would create a new sound.
Take the .ogg file you want.
Call it something else, and then take any .snt file, and edit it so it works with the new .ogg file.
Put the 2 files in the same folder with your custom story.


RE: PlaySoundAtEntity not working :( I need HELP! - 4WalledKid - 10-17-2012

(10-17-2012, 09:57 PM)beecake Wrote: I would create a new sound.
Take the .ogg file you want.
Call it something else, and then take any .snt file, and edit it so it works with the new .ogg file.
Put the 2 files in the same folder with your custom story.
Do I have to specify the folder where the 2 files are in the script?


RE: PlaySoundAtEntity not working :( (Help Needed!) - FlawlessHappiness - 10-17-2012

I'm not quite sure about that... It makes no harm doing it i guess...

Now i've got the exact same question as 4WalledKid...
PlaySoundAtEntity("ThrowUpSound", "16_water_stream_low.snt", "Player", 0, false);

This won't play in my map. The scripts work fine. I get no errors, but this sound won't play. Really driving me nuts, since throwing up without sound is pretty.... boring...


RE: PlaySoundAtEntity not working :( (Help Needed!) - Statyk - 10-18-2012

(10-17-2012, 11:22 PM)beecake Wrote: I'm not quite sure about that... It makes no harm doing it i guess...

Now i've got the exact same question as 4WalledKid...
PlaySoundAtEntity("ThrowUpSound", "16_water_stream_low.snt", "Player", 0, false);

This won't play in my map. The scripts work fine. I get no errors, but this sound won't play. Really driving me nuts, since throwing up without sound is pretty.... boring...
1) Be careful, that sound loops.
2) Does anything else in that part of the script work?


RE: PlaySoundAtEntity not working :( (Help Needed!) - FlawlessHappiness - 10-18-2012

Yep anything else works Wink As you can see i am making a "Throw up cutscene".
Thats why i named the sounds, so i could remove it again. It just aint playing at all..

EDIT: I found something... It seems that i don't have the .ogg file... only the .snt..