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
Cant get this function to work (sound)
Fralexxelarf Offline
Junior Member

Posts: 24
Threads: 5
Joined: Jan 2012
Reputation: 0
#1
Cant get this function to work (sound)

Quote:void OnStart()
{
SetEntityPlayerInteractCallback("Key_1", "Scary_3_1", true);

}

void Scary_3_1(string &in entity)
{
SetEntityActive("Skull_1", true);
PlaySoundAtEntity("", "21_scream7.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
AddTimer("CabinetTimer",0.7, "Scary_3_2");

}
This is so weird cause all the other functions work but not the "PlaySoundAtEntity" , and I have used that script before, in the same map. Does anyone have an idea why it doesnt work?
(This post was last modified: 01-03-2012, 03:29 PM by Fralexxelarf.)
01-03-2012, 03:27 PM
Find


Messages In This Thread
Cant get this function to work (sound) - by Fralexxelarf - 01-03-2012, 03:27 PM



Users browsing this thread: 1 Guest(s)