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
Play custom sound at area?
FreshKorruption Offline
Member

Posts: 94
Threads: 27
Joined: Oct 2011
Reputation: 1
#1
Play custom sound at area?

Hey guys. So I don't know what I am doing wrong. I have the custom sound (fmscream1.ogg) in the sounds folder, but when i hit the area, it wont play the sound. Here is the script i have. BTW it isn't scripted like this. It is scripted in the right positions and not just beside each other.



AddEntityCollideCallback("Player", "scream_1", "Scream", true, 1);

void Scream(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "fmscream1", "Player", 0, false);
}

Custom Stories

-BrastaSauce

(This post was last modified: 12-03-2011, 07:28 AM by FreshKorruption.)
12-03-2011, 07:27 AM
Website Find


Messages In This Thread
Play custom sound at area? - by FreshKorruption - 12-03-2011, 07:27 AM
RE: Play custom sound at area? - by flamez3 - 12-03-2011, 07:53 AM
RE: Play custom sound at area? - by flamez3 - 12-03-2011, 03:23 PM
RE: Play custom sound at area? - by Statyk - 12-03-2011, 07:30 PM



Users browsing this thread: 1 Guest(s)