Frictional Games Forum (read-only)
How to add sound effect - 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: How to add sound effect (/thread-19341.html)



How to add sound effect - liquiddr3amz - 11-25-2012

I was wondering how to add a sound effect eg; react_pant, the part i would like the sound is at:


void keyfunc(string &in asEntity, string &in type)
{
SetEntityActive("servant_brute_1",true);`
StartPlayerLookAt("servant_brute_1",15,15,"");
AddTimer("monstertimer",2,"monstertimer");
ShowEnemyPlayerPosition("servant_brute_1");
}


void monstertimer(string &in asTimer)

{
StopPlayerLookAt();
}


i gotta use:

PlayGuiSound("react/react_pant3.ogg",1.0f);
StartScreenShake(0.5f,2,0,0.25);

just not sure were to put them without getting a error, if someone could help that would be great Angel




never mind im a idiot. i had a ' on a line by accident, i dont know how it got there.