[SCRIPT] Sound File isn't working? - 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: [SCRIPT] Sound File isn't working? (/thread-12501.html) |
Sound File isn't working? - MissMarilynn - 01-10-2012 void ClockScare(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("explosion", "explosion_rock_large.snt", "clock_grandfather_1", 0, false); PlaySoundAtEntity("", "react_scare", "Player", 0, false); StartScreenShake(1, 1.0f, 0.5f, 5.0f); GiveSanityDamage(5.0f, true); } Everything else works except the sound. :/ Just to check: What is suppose to go in the clock_grandfather_1 space? I put an entity...is it suppose to be an area? RE: Sound File isn't working? - flamez3 - 01-10-2012 No, you can put it on anything that is an entity. I can't see anything wrong with it. May be trying to put it on Player instead of the grandfather clock? RE: Sound File isn't working? - Statyk - 01-10-2012 Also make sure the grandfather clock's name matches the one in the script. If it helps, try putting it attached to the "Player", if the sound doesn't play, it could be a name issue or a resource issue (refresh Amnesia by restarting it). RE: Sound File isn't working? - MissMarilynn - 01-10-2012 I put the clock_grandfather_1 as player. You two are amazing. It works! Thank you both RE: Sound File isn't working? - flamez3 - 01-10-2012 (01-10-2012, 02:50 AM)Statyk Wrote: refresh Amnesia by restarting it).Yeh, sounds need for you to restart amnesia (or go to the main menu) for them to take affect. |