can't stop looping sound! - 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: can't stop looping sound! (/thread-6293.html) |
can't stop looping sound! - nekrodamus - 01-20-2011 Is there a way a sound plays only once when a player collides with an area? I play it when he collides, but it continues looping endlessly... i have to set a timer to cut it off... Is there a more direct way? This is the Onstart code: Code: void OnStart() Code: void OnEnterArea2(string &in asParent, string &in asChild, int alState) Code: void TimerFinSonido01(string &in asTimer) RE: can't stop looping sound! - Equil - 01-20-2011 An alternative way to timers for this particular sound would be to use "scare_wall_scratch_single.snt" instead, or edit the .snt file and change looping to false. RE: can't stop looping sound! - Tottel - 01-20-2011 In the level editor, set playerInteractAutoCallBackRemove -> on, on the area. EDIT: What the guy above me said as well. :p Check if it IS looping, the audio clip itself actually does a series of sounds already, might just be that. ^^ RE: can't stop looping sound! - nekrodamus - 01-20-2011 Yep... That was. I edit the .snt and it works!! The other sound was too short. Thanks a lot!!! I'll be back tomorrow with more annoying newbie questions! RE: can't stop looping sound! - Tanshaydar - 01-20-2011 You ask, I learn. |