Frictional Games Forum (read-only)
How to make jumpscares? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How to make jumpscares? (/thread-24302.html)



How to make jumpscares? - Radical Batz - 01-06-2014

I want to make jump scares in my CS but not like naked guys jumping at you and stuff, I want it to be just like the original game where the skulls come out of the cup board in the study if you know what i'm talking about! yeah how do you do that or what is the name of the code? I want like when you touch the closet something will happen or blood comes out


RE: How to make jumpscares? - Romulator - 01-06-2014

Well, assuming you want the blood, you need to get some particles so that you can get some blood going (think there is one), some decals of the blood where necessary; found in the static objects area of the Level Editor.

Coding it, you would use the SetEntityPlayerInteractCallback and the void routine it uses. You would fill in the gaps however Smile :
PHP Code:
SetEntityPlayerInteractCallback(stringasNamestringasCallbackbool abRemoveOnInteraction);

void stringasCallback(string &in asEntity)
{
//Put some code in here, which happens when you interact with your closet


If there were to be moving skulls, you would add force to them with:

PHP Code:
AddPropForce(stringasNamefloat afXfloat afYfloat afZstringasCoordSystem); 

You can find all scripts compatiable with this game on the Engine Scripts page