![]() |
Falling Player Script Help! - 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: Falling Player Script Help! (/thread-18754.html) |
Falling Player Script Help! - TheMadmaxster - 10-13-2012 Hi all! So I have finally gotten the cave-in to work... Now another thing comes to mind: I want to also make it where the player falls to the ground while the collapse happens. Anyone know the code of the falling player thing? One more thing, I also want to add dust particle effect thing. Thanks! -TheMadmaxster RE: Falling Player Script Help! - Statyk - 10-13-2012 If questions are relative to a thread you already made, could you update that thread next time? RE: Falling Player Script Help! - TheMadmaxster - 10-13-2012 (10-13-2012, 03:21 AM)Statyk Wrote: Haha! Ya, sorry. I'm really tired; not thinking straight. RE: Falling Player Script Help! - Wapez - 10-13-2012 void faint(string &asTimer) { PlaySoundAtEntity("", "player_bodyfall.snt", "Player", 0, false); SetPlayerCrouching(true); FadePlayerRollTo(50, 150, 150); } Simple simulation off the player falling. RE: Falling Player Script Help! - TheMadmaxster - 10-13-2012 Is there an onstart line? RE: Falling Player Script Help! - FlawlessHappiness - 10-13-2012 He provided a timer-script. What you need to do is place the following line in where the cavein script is. AddTimer("faint", 0, "faint"); |