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
#6
RE: Saving the game when the player interacts with something like a bed

(06-22-2012, 09:12 PM)Skiveo Wrote: Hm it won't work, this is what I did (not sure if I did it right >_<)
I putted down a bed first made a script area and in the .hps file I typed:

SetEntityPlayerInteractCallback("ScriptArea_1", "Save", false);

and then:


void Save(string &in asChild, string &in asParent, int alState)
{
AutoSave();
SetMessage("Messages", "PopUp5", 0);
///////this is so that the player will see the game is save.
}
its not SetEntityInteractCallback, you have to use AddEntityCollideCallback("Player", "ScriptArea_1", "Save", true, 1);
06-22-2012, 09:16 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:16 PM



Users browsing this thread: 3 Guest(s)