Frictional Games Forum (read-only)

Full Version: Player falls
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How to do this:
Player walks to area, then he falls to floor and everyhting goes black*, then 1 - 2 seconds later he wakes up.
and when player falls to floor the screen shakes and something cool effects?

Thanks for helppers!!1

i make this topic becaus Xtron has go somewhere.
*fix
You need so many different things. Timers, Fades, ScreenShakes, LookAts...

The event you are describing is quite ambitious, particularly if you are new to scripting. I recommend you try doing other simpler things first Smile
okay. :I (must bee 10 letters in post, so i made something to ()-tags :I)
see that Nye! I, Xtron ownz!.


Miguli. I can try make some screeneffects and timers for you tomorrow :/. Good night ya'll
Xtron, thanks ^_____^
Good night. Have you all nightmares... i mean dreams like: unicorns and marshmellows and rainbows, double rainbows!!!1
(really you see only grunts and brutes... BUHAHAHAHAHA)

-yeah i'm tired XD
You should look at the scripts of the original Amnesia levels. The first level has a part where you fall to the floor that you might be able to use.
Try that:

void OnStart()
{
AddEntityCollideCallback("Player", "Yourarea", "yourarea", true, 1);
}

void yourarea(string &in asParent , string &in asChild , int alState)
{
SetPlayerCrouching(true);
FadeOut(2);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
AddTimer("Timer", 2.0f, "wakeup");
SetPlayerJumpDisabled(true);
SetInventoryDisabled(true);
}

void wakeup(string &in asTimer)
{
StartPlayerLookAt("ScriptArea_1", 2.0, 3.0f, "");
FadeRadialBlurTo(0.07, 0.015f);
FadeIn(2);
AddTimer("Timer", 1.0f, "begin");
}

void begin(string &in asTimer)
{
SetPlayerCrouching(false);
SetPlayerJumpDisabled(false);
SetInventoryDisabled(false);
SetPlayerStateToNormal();
FadeRadialBlurTo(0, 1);
}

I hope it works Wink
But i dont know how to make the player fall down Sad

Yeah that should work IF he makes an area called "Yourarea"
(06-14-2011, 12:21 PM)ferryadams10 Wrote: [ -> ]Yeah that should work IF he makes an area called "Yourarea"



Yep
For the "lying on the floor" effect, use this function:

FadePlayerRollTo(50, 150, 150);

Then to return the camera back to horizontal

FadePlayerRollTo(0, 33, 33);

Insert those where they need to be in Janni1234's script.
Pages: 1 2