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
[Script ]Make player go to sleep
9903286 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Jul 2011
Reputation: 0
#1
Question  [Script ]Make player go to sleep

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 Tongue )
(This post was last modified: 12-12-2011, 10:23 AM by 9903286.)
12-11-2011, 06:23 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: [Script] Make player go to sleep

FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);
FadeOut(1.0f);

(This post was last modified: 12-11-2011, 09:52 PM by flamez3.)
12-11-2011, 09:52 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#3
RE: [Script] Make player go to sleep

(12-11-2011, 09:52 PM)flamez3 Wrote: FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);
FadeOut(1.0f);
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);
{
12-11-2011, 11:32 PM
Find
9903286 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Jul 2011
Reputation: 0
#4
RE: [Script ]Make player go to sleep

Okay, but now, how do i get the player to wake up again...
12-12-2011, 10:23 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#5
RE: [Script ]Make player go to sleep

(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

(This post was last modified: 12-12-2011, 11:08 AM by flamez3.)
12-12-2011, 11:07 AM
Find




Users browsing this thread: 3 Guest(s)