Player falls - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Player falls (/thread-8588.html) Pages:
1
2
|
Player falls - miguli - 06-13-2011 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 RE: Player falls - Nye - 06-13-2011 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 RE: Player falls - miguli - 06-13-2011 okay. :I (must bee 10 letters in post, so i made something to ()-tags :I) RE: Player falls - xtron - 06-13-2011 see that Nye! I, Xtron ownz!. Miguli. I can try make some screeneffects and timers for you tomorrow :/. Good night ya'll RE: Player falls - miguli - 06-13-2011 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 RE: Player falls - nofsky - 06-14-2011 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. RE: Player falls - Janni1234 - 06-14-2011 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 But i dont know how to make the player fall down RE: Player falls - ferryadams10 - 06-14-2011 Yeah that should work IF he makes an area called "Yourarea" RE: Player falls - Janni1234 - 06-14-2011 (06-14-2011, 12:21 PM)ferryadams10 Wrote: Yeah that should work IF he makes an area called "Yourarea" Yep RE: Player falls - Russ Money - 06-14-2011 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. |