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
Script Help Stuck doing a Jump-Scare script
Kixz0 Offline
Junior Member

Posts: 16
Threads: 3
Joined: Apr 2013
Reputation: 0
#4
RE: Stuck doing a Jump-Scare script

(04-07-2013, 08:47 PM)zergling50 Wrote: I don't know if this will help (I'm also new but just trying to help some others out) but I normally use true instead of false on the addentitycollidecallback.

Well, it stopped the sound to repeat. So that's one of the issues solved. Thank you for that!

Now I only need it to disappear and to play the scream sound.

(04-07-2013, 08:56 PM)ClayPigeon Wrote: Jumpscare_Corspe1
Jumpscare_Corpse1



See the differences? You've got these names mixed up.
Change this:
SetEntityActive("Jumpscare_Corpse1", false);

To this:
SetEntityActive("Jumpscare_Corspe1", false);



And change this:
AddEntityCollideCallback("Player", "JumpScare1", "Jumpscare1", false, 1);

To this:
AddEntityCollideCallback("Player", "JumpScare1", "Jumpscare1", true, 1);



So the collision area would be deleted and the sound won't be heard over and over.

Man, you're a hero. That's my bad to miss that one thing.. Thanks!

But I still don't hear this: PlaySoundAtEntity("", "21_scream6.ogg", "Player", 0, false);

I tried to put this above the PlaySoundAtEntity("", "enemy_hallucination_disappear.ogg", "Player", 0, false);

But I didn't hear it there either, any suggestions?
(This post was last modified: 04-07-2013, 09:00 PM by Kixz0.)
04-07-2013, 08:56 PM
Find


Messages In This Thread
Stuck doing a Jump-Scare script - by Kixz0 - 04-07-2013, 08:36 PM
RE: Stuck doing a Jump-Scare script - by Kixz0 - 04-07-2013, 08:56 PM
RE: Stuck doing a Jump-Scare script - by Kixz0 - 04-07-2013, 09:30 PM



Users browsing this thread: 1 Guest(s)