Frictional Games Forum (read-only)

Full Version: Trying to use PlaySoundAtEntity
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
void OnStart()
{
    PlaySoundAtEntity("ambience_voice", "ambience_voice.snt", "deformed_man_1", 1.0f, true);
} //omitted lots of code for thread

I'm trying to use PlaySoundAtEntity with no success. I spawn right next to deformed_man_1, and even so, I cannot hear it at all. ambience_voice is in "amnesia the dark descent\sounds\ambience". I've tried it with and without ".snt" in the parameters, tried different internal names, and I've tried different levels.
(04-14-2012, 01:58 PM)FragdaddyXXL Wrote: [ -> ]
Code:
void OnStart()
{
    PlaySoundAtEntity("ambience_voice", "ambience_voice.snt", "deformed_man_1", 1.0f, true);
} //omitted lots of code for thread

I'm trying to use PlaySoundAtEntity with no success. I spawn right next to deformed_man_1, and even so, I cannot hear it at all. ambience_voice is in "amnesia the dark descent\sounds\ambience". I've tried it with and without ".snt" in the parameters, tried different internal names, and I've tried different levels.
.
So far I do not know why, but what I have discovered, you can't play sounds at some entities. Try to play your sound at another entity that not is the "deformed_man_1" and see if it works. If it does work, put a script area around "deformed_man_1" and play the sound at that area instead.


(04-14-2012, 02:51 PM)Mackiiboy Wrote: [ -> ]
(04-14-2012, 01:58 PM)FragdaddyXXL Wrote: [ -> ]
Code:
void OnStart()
{
    PlaySoundAtEntity("ambience_voice", "ambience_voice.snt", "deformed_man_1", 1.0f, true);
} //omitted lots of code for thread

I'm trying to use PlaySoundAtEntity with no success. I spawn right next to deformed_man_1, and even so, I cannot hear it at all. ambience_voice is in "amnesia the dark descent\sounds\ambience". I've tried it with and without ".snt" in the parameters, tried different internal names, and I've tried different levels.
.
So far I do not know why, but what I have discovered, you can't play sounds at some entities. Try to play your sound at another entity that not is the "deformed_man_1" and see if it works. If it does work, put a script area around "deformed_man_1" and play the sound at that area instead.
Ah! That was it. I played it at a wooden box and it worked! Thanks. Big Grin