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
Help with sound
Storfigge Offline
Member

Posts: 101
Threads: 31
Joined: Sep 2012
Reputation: 0
#1
Help with sound

Why wont this work? I've checked the forums and sat for a freaking hour trying to fix it -.- nothing seems to work? I've made an .snt file according to the wiki but again it wont work.

Heres the code



void OnStart()
{
AddEntityCollideCallback("Player", "Scream1", "sound", true, 1);

}




void sound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scream.ogg", "Player", 0, true);
}



void OnEnter()
{
}


void OnLeave()
{
}

12-18-2012, 02:04 PM
Find


Messages In This Thread
Help with sound - by Storfigge - 12-18-2012, 02:04 PM
RE: Help with sound - by The chaser - 12-18-2012, 02:11 PM
RE: Help with sound - by Storfigge - 12-18-2012, 02:35 PM



Users browsing this thread: 5 Guest(s)