Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add sound effect
liquiddr3amz Offline
Junior Member

Posts: 14
Threads: 5
Joined: Nov 2012
Reputation: 0
#1
How to add sound effect

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.
(This post was last modified: 11-25-2012, 05:34 AM by liquiddr3amz.)
11-25-2012, 05:23 AM
Find




Users browsing this thread: 1 Guest(s)