![]() |
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: Jumpscares (/thread-17777.html) |
RE: Jumpscares - FlawlessHappiness - 08-15-2012 Indeed Traggey ![]() RE: Jumpscares - Adny - 08-15-2012 (08-15-2012, 03:52 PM)Ank2503 Wrote: 1)how to make entity(flyingmale)after 1 second disabled( SetEntityActive("flyingmale", true); script1. You need to add another timer 2. You need much larger values (you also need to use prop force) for it to have any effect in game. Try this: void OnStart() { AddEntityCollideCallback("Player", "NAME_OF_AREA", "NAME_OF_FUNC", true, 1); } void NAME_OF_FUNC(string &in asParent, string &in asChild, int alState) { PlayGuiSound("15_man02_whimp.snt", 1.0f); AddTimer("t1", 1.0f, "TIMER_NAME"); AddTimer("t2", 3.0f, "TIMER_NAME"); } void TIMER_NAME(string &in asTimer) { if(asTimer = "t1") { SetEntityActive("flyingmale", true); AddPropForce("flyingmale", 0, 25, 80, "world"); PlaySoundAtEntity("Player", "24_iron_maiden", "Player", 0, false); } if(asTimer = "t2") { SetEntityActive("flyingmale", false); } } You may need to make the prop force values even large (most likely in the hundreds); each prop has different physics so those numbers should be tested and corrected accordingly. Hope that helped RE: Jumpscares - Ank2503 - 08-15-2012 if(asTimer = "t1") if(asTimer = "t2") Fatal error-expressions must be of boolean type wtf? RE: Jumpscares - Adny - 08-15-2012 (08-15-2012, 04:38 PM)Ank2503 Wrote: if(asTimer = "t1")My apologies; add an extra equals sign: if(asTimer == "t1") That should fix it. RE: Jumpscares - Ank2503 - 08-15-2012 (08-15-2012, 02:32 PM)beecake Wrote: It depends on what you want. (08-15-2012, 04:54 PM)andyrockin123 Wrote:yep this works rep+ for you(08-15-2012, 04:38 PM)Ank2503 Wrote: if(asTimer = "t1") RE: Jumpscares - FlawlessHappiness - 08-15-2012 Anyway, I must give my opinion too: I don't like jumpscares either... Just so you know what to expect ![]() RE: Jumpscares - Melvin - 08-15-2012 (08-15-2012, 12:06 PM)Ank2503 Wrote: How to make Jumpscares?With script of course.Tip, don't make jumpscares. RE: Jumpscares - Ank2503 - 08-15-2012 (08-15-2012, 05:25 PM)beecake Wrote: Anyway, I must give my opinion too: I don't like jumpscares either... Just so you know what to expectok,i will. ![]() RE: Jumpscares - Theforgot3n1 - 08-15-2012 (08-15-2012, 05:28 PM)SmokeMelvin Wrote:It's not the jump scares themselves that are the problem, Frictional themselves used a lot of jump scares, it's just that when they become these repetitive teleporting naked guys, it's no longer that scary, but merely annoying.(08-15-2012, 12:06 PM)Ank2503 Wrote: How to make Jumpscares?With script of course.Tip, don't make jumpscares. RE: Jumpscares - GoranGaming - 08-15-2012 void OnStart() { SetPlayerHealth(0); } |