The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
How to add sound effect - by liquiddr3amz - 11-25-2012, 05:23 AM



Users browsing this thread: 1 Guest(s)