danimora2012
Junior Member
Posts: 47
Threads: 18
Joined: Apr 2012
Reputation:
0
|
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
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!
(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
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...
(This post was last modified: 09-16-2012, 07:52 PM by danimora2012.)
|
|
09-16-2012, 07:50 PM |
|