Frictional Games Forum (read-only)

Full Version: Falling Player Script Help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
If questions are relative to a thread you already made, could you update that thread next time?
(10-13-2012, 03:21 AM)Statyk Wrote: [ -> ]Haha! Ya, sorry. I'm really tired; not thinking straight.
void faint(string &asTimer)
{
PlaySoundAtEntity("", "player_bodyfall.snt", "Player", 0, false);
SetPlayerCrouching(true);
FadePlayerRollTo(50, 150, 150);
}


Simple simulation off the player falling.
Is there an onstart line?
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");