Trying to use PlaySoundAtEntity - 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: Trying to use PlaySoundAtEntity (/thread-14780.html) |
Trying to use PlaySoundAtEntity - FragdaddyXXL - 04-14-2012 Code: void OnStart() 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. RE: Trying to use PlaySoundAtEntity - Mackiiboy - 04-14-2012 (04-14-2012, 01:58 PM)FragdaddyXXL Wrote:. 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. RE: Trying to use PlaySoundAtEntity - FragdaddyXXL - 04-14-2012 (04-14-2012, 02:51 PM)Mackiiboy Wrote:Ah! That was it. I played it at a wooden box and it worked! Thanks.(04-14-2012, 01:58 PM)FragdaddyXXL Wrote:. |