Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Player falls
miguli Offline
Junior Member

Posts: 43
Threads: 7
Joined: Jun 2011
Reputation: 0
#1
Player falls

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

Amnesia map:
Hope - Work in Progress.
(This post was last modified: 06-13-2011, 11:01 PM by miguli.)
06-13-2011, 10:49 PM
Find
Nye Offline
Senior Member

Posts: 250
Threads: 8
Joined: Jan 2011
Reputation: 2
#2
RE: Player falls

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

06-13-2011, 10:56 PM
Find
miguli Offline
Junior Member

Posts: 43
Threads: 7
Joined: Jun 2011
Reputation: 0
#3
RE: Player falls

okay. :I (must bee 10 letters in post, so i made something to ()-tags :I)

Amnesia map:
Hope - Work in Progress.
06-13-2011, 10:58 PM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#4
RE: Player falls

see that Nye! I, Xtron ownz!.


Miguli. I can try make some screeneffects and timers for you tomorrow :/. Good night ya'll

[Image: 44917299.jpg]Dubstep <3
06-13-2011, 11:19 PM
Find
miguli Offline
Junior Member

Posts: 43
Threads: 7
Joined: Jun 2011
Reputation: 0
#5
RE: Player falls

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

Amnesia map:
Hope - Work in Progress.
06-13-2011, 11:23 PM
Find
nofsky Offline
Senior Member

Posts: 423
Threads: 13
Joined: Sep 2008
Reputation: 1
#6
RE: Player falls

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.
06-14-2011, 05:52 AM
Find
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#7
RE: Player falls

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

06-14-2011, 11:55 AM
Find
ferryadams10 Offline
Senior Member

Posts: 288
Threads: 40
Joined: Apr 2011
Reputation: 19
#8
RE: Player falls

Yeah that should work IF he makes an area called "Yourarea"

Got a nice sofa
Please come and have a seat for a while

06-14-2011, 12:21 PM
Find
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#9
RE: Player falls

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



Yep
06-14-2011, 12:38 PM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#10
RE: Player falls

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.

(This post was last modified: 06-14-2011, 12:46 PM by Russ Money.)
06-14-2011, 12:46 PM
Find




Users browsing this thread: 2 Guest(s)