Frictional Games Forum (read-only)
Scare 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Scare Sound? (/thread-17078.html)

Pages: 1 2 3


RE: Scare Sound? - Kazakarumariou - 07-21-2012

void OnStart()
{
AddEntityCollideCallback("Player", "Name of script area", "SoundTrigger", true, 1);
}


void SoundTrigger(string &in asParent, string &in asChild, int alState)
{
PlayGuiSound("player_cough.snt", 0.7f);

}


RE: Scare Sound? - zergling50 - 07-22-2012

(07-21-2012, 07:23 PM)Harthex Wrote: void OnStart()
{ AddEntityCollideCallback("Player", "Name of script area", "SoundTrigger", true, 1);
}


void SoundTrigger(string &in asParent, string &in asChild, int alState)
{
PlayGuiSound("player_cough.snt", 0.7f);

}
THANKS! It worked! Thanks for all you guys help!