[Script ]Make player go to sleep - 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: [Script ]Make player go to sleep (/thread-11786.html) |
[Script ]Make player go to sleep - 9903286 - 12-11-2011 How do i get the player to fall down on the floor while the camera is slowly tilted 90 degrees and then the screen goes black..? (Sorry for bad english ) RE: [Script] Make player go to sleep - flamez3 - 12-11-2011 FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed); FadeOut(1.0f); RE: [Script] Make player go to sleep - Statyk - 12-11-2011 (12-11-2011, 09:52 PM)flamez3 Wrote: FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);Or more specifically: } PlaySoundAtEntity("", "player_bodyfall.snt", "Player", 0, false); MovePlayerHeadPos(0, -1.5f, 0, 1, 0.1f); FadePlayerRollTo(90, 1, 2); FadeOut(1.0f); { RE: [Script ]Make player go to sleep - 9903286 - 12-12-2011 Okay, but now, how do i get the player to wake up again... RE: [Script ]Make player go to sleep - flamez3 - 12-12-2011 (12-12-2011, 10:23 AM)9903286 Wrote: Okay, but now, how do i get the player to wake up again...FadeIn(1.0f); MovePlayerHeadPos(0, 0f, 0, 3, 0.1f); FadePlayerRollTo(0, 1, 2); You might need to use timers |