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 Help Saving the game when the player interacts with something like a bed
Skiveo Offline
Junior Member

Posts: 25
Threads: 5
Joined: Jun 2012
Reputation: 0
#11
RE: Saving the game when the player interacts with something like a bed

D: now when I added a timer so he "wakes up" again but now his head won't go back to normal

void Awaken(string &in timer_name)
{
FadeIn(3);
SetPlayerActive(true);
ShowPlayerCrossHairIcons(true);
SetPlayerCrouching(false);
FadePlayerRollTo(0, 0, 150);
MovePlayerHeadPos(0, 0, 0, 2, 2);
}

Don't fear the shadows, it means there's a light nearby
Projects:
W.I.P. -A New Place- (Full Conversion)
06-22-2012, 09:48 PM
Find
drunkmonk Offline
Member

Posts: 109
Threads: 7
Joined: Jun 2012
Reputation: 4
#12
RE: Saving the game when the player interacts with something like a bed

Delete the MovePlayerHeadPos and try this instead
FadePlayerRollTo(0, 33,33);
06-22-2012, 09:53 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#13
RE: Saving the game when the player interacts with something like a bed

wrong callback syntax for the timer. the correct one is:
void Awaken(string &in asTimer)
06-22-2012, 11:14 PM
Find
Skiveo Offline
Junior Member

Posts: 25
Threads: 5
Joined: Jun 2012
Reputation: 0
#14
RE: Saving the game when the player interacts with something like a bed

Ok, everything works perfect now thanks

Don't fear the shadows, it means there's a light nearby
Projects:
W.I.P. -A New Place- (Full Conversion)
06-23-2012, 09:01 AM
Find
Skiveo Offline
Junior Member

Posts: 25
Threads: 5
Joined: Jun 2012
Reputation: 0
#15
RE: Saving the game when the player interacts with something like a bed

Huh only strange thing now is that the player bugs up and down when laying on the bed

Don't fear the shadows, it means there's a light nearby
Projects:
W.I.P. -A New Place- (Full Conversion)
06-23-2012, 11:38 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#16
RE: Saving the game when the player interacts with something like a bed

(06-23-2012, 11:38 AM)Skiveo Wrote: Huh only strange thing now is that the player bugs up and down when laying on the bed

You may have dropped the player's head too far down or at too fast of a speed.

Tutorials: From Noob to Pro
06-23-2012, 12:29 PM
Website Find




Users browsing this thread: 1 Guest(s)