Frictional Games Forum (read-only)

Full Version: Saving the game when the player interacts with something like a bed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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);
}
Delete the MovePlayerHeadPos and try this instead
FadePlayerRollTo(0, 33,33);
wrong callback syntax for the timer. the correct one is:
void Awaken(string &in asTimer)
Ok, everything works perfect now thanks
Huh only strange thing now is that the player bugs up and down when laying on the 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.
Pages: 1 2