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)
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Cant get this function to work (sound)

(01-03-2012, 03:27 PM)Fralexxelarf Wrote:
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?
Did you restart the CS and try again?


01-03-2012, 03:43 PM
Find


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



Users browsing this thread: 1 Guest(s)