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
How do i make jumpscares?? Please check my script...
danimora2012 Offline
Junior Member

Posts: 47
Threads: 18
Joined: Apr 2012
Reputation: 0
#16
RE: How do i make jumpscares?? Please check my script...

(09-16-2012, 07:48 PM)Wapez Wrote:
(09-16-2012, 07:23 PM)danimora2012 Wrote:
(09-16-2012, 06:45 PM)The chaser Wrote: danimora, please, put this in development support. It's there for something.
Oh..i thought it was supposed to be here...thank you very much Blush
Though i solved it... this custom story is going to be awesome... i promisse...so far so good
14% done

This is the fixed script:


void OnStart()
{
AddEntityCollideCallback("Player", "Jumpscare_1", "Jump1", true, 1);
}

void Jump(string &in asEntity)
{
SetEntityActive("bro_1", true);
AddPropForce("bro_1", 0, 0, -9000, "world");
AddTimer("", 0.7, "scared");
PlaySoundAtEntity("", "ahhh.ogg", "Player", 0, false);
}
Just saying, that is not a correct script. The callback adds the function "Jump1" but the actual function you are using is called "Jump".
Just forgot to edit that...but still works...thanks! Tongue

(09-16-2012, 07:23 PM)Nemet Robert Wrote:
(09-16-2012, 07:23 PM)danimora2012 Wrote:
(09-16-2012, 06:45 PM)The chaser Wrote: danimora, please, put this in development support. It's there for something.
Oh..i thought it was supposed to be here...thank you very much Blush
Though i solved it... this custom story is going to be awesome... i promisse...so far so good
14% done
A promise can easily be broken. You make sure you can handle that.
At lease il try... Confused
(This post was last modified: 09-16-2012, 07:52 PM by danimora2012.)
09-16-2012, 07:50 PM
Find


Messages In This Thread
RE: How do i make jumpscares?? Please check my script... - by danimora2012 - 09-16-2012, 07:50 PM



Users browsing this thread: 1 Guest(s)