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.11 (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
sound script issue
G510s Offline
Banned

Posts: 58
Threads: 32
Joined: Jun 2014
#1
sound script issue

void OnStart()
{
PlayMusic("Search_Brute", true, 5, 3.0, 4, true);

AddEntityCollideCallback("Player", "Script", "UseScript", true, 1);

AddEntityCollideCallback("Player", "Script_1", "Sound", true, 1);
}



void Sound(string &in asParent, string &in asChild, int alState)
{

PlaySoundAtEntity("", "scare_wood_creak.snt", "Player", 1.2, false);

}




void UseScript(string &in asParent, string &in asChild, int alState)
{

SetEntityActive("SlenderMan", true);

}



------------------------------------------------------------------------------------------------------
this is my script. what can i do to fix it. when i walk into the script area it will not play the sound.
12-16-2014, 12:06 PM
Find


Messages In This Thread
sound script issue - by G510s - 12-16-2014, 12:06 PM
RE: sound script issue - by Mudbill - 12-16-2014, 12:47 PM
RE: sound script issue - by G510s - 12-16-2014, 01:04 PM
RE: sound script issue - by Mudbill - 12-16-2014, 01:09 PM
RE: sound script issue - by G510s - 12-16-2014, 01:47 PM
RE: sound script issue - by Mudbill - 12-16-2014, 02:25 PM



Users browsing this thread: 1 Guest(s)