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
drunkmonk Offline
Member

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

(06-22-2012, 09:20 PM)Skiveo Wrote: Thanks, it works, is there also a way that when the player steps on the bed he will ''fall asleep''?
along the same lines as before, have your script area on the bed and when the player enters the area have the screen fade out and use FadePlayerRollTo.
Something like this
AddEntityCollideCallback("Player", "ScriptArea_2", "Sleep", true, 1);

void Sleep(string &in asParent, string &in asChild, int alState)
{
FadeOut(10.0);
SetPlayerActive(false);
ShowPlayerCrossHairIcons(false);
SetPlayerCrouching(true);
FadePlayerRollTo(50,150,150);
}
//may need to play around with it a little
06-22-2012, 09:28 PM
Find


Messages In This Thread
RE: Saving the game when the player interacts with something like a bed - by drunkmonk - 06-22-2012, 09:28 PM



Users browsing this thread: 1 Guest(s)