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 to make a jumpscare screen?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: how to make a jumpscare screen?

You need to understand.

When something says "MyFunc" is just another way of saying "MyFunction". Meaning it's a placeholder for the real name of the function.

In the code you found, the name of the function is "CollideGruntCorpse". You can see it's a collidefunction because it has (string &in asParent, string &in asChild, int alState).

What you experienced in that particular place is probably that the door is colliding with a script area, it calls the function. So it's not when you touch it, but when the door opens.
Therefore this function will not work, unless you set up your level as if you opened a door.


Also, for a script to work you must have in your "void OnStart()" function, a line saying that you want to add a function that creates the jumpscare.

In this case you will be needing:

PHP Code: (Select All)
AddEntityCollideCallback(stringasParentNamestringasChildNamestringasFunctionbool abDeleteOnCollideint alStates); 

If you put this in your "void OnStart()" function it tells the script to add a collide function.
Now you have to fill in all the data that it needs.
You can get explained what the different things mean here:
http://wiki.frictionalgames.com/hpl2/amn..._functions

Press Ctrl+F or Cmd+F to search for the specific function: "AddEntityCollideCallback", to find it.

Do you understand? Smile

Trying is the first step to success.
01-31-2014, 08:55 PM
Find


Messages In This Thread
how to make a jumpscare screen? - by Radical Batz - 01-31-2014, 07:10 PM
RE: how to make a jumpscare screen? - by Tiger - 01-31-2014, 07:35 PM
RE: how to make a jumpscare screen? - by FlawlessHappiness - 01-31-2014, 08:55 PM



Users browsing this thread: 1 Guest(s)