Custom story autosave points? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Custom story autosave points? (/thread-17422.html) |
Custom story autosave points? - HeadyBoy - 08-02-2012 How can I make it so that the game just saves automatically as you go through it? RE: Custom story autosave points? - Lizard - 08-02-2012 (08-02-2012, 03:13 PM)HeadyBoy Wrote: How can I make it so that the game just saves automatically as you go through it?guess you can use this function when you collide with an area or something like that AutoSave(); RE: Custom story autosave points? - Adny - 08-02-2012 Put the Autosave function Zereb0 posted under "void OnEnter()". That's the most common way to auto save. RE: Custom story autosave points? - HeadyBoy - 08-02-2012 So this would make it so that it's a kinda like.. Checkpoint, in case the player dies? RE: Custom story autosave points? - Adny - 08-02-2012 No; checkpoints make checkpoints when the player dies xD Here's the function for that: CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry); Use this function whenever you spawn a monster, or when the player enters an area where he can die from environmental reasons. Hope that helped. RE: Custom story autosave points? - HeadyBoy - 08-02-2012 Tried doing this, it works, but instead of taking me to the time period BEFORE I unlocked a door, walked in, and spawned a monster, the door had already been opened and the monster was not there. As if it just teleported the player. What have I done wrong? D: RE: Custom story autosave points? - ApeCake - 08-02-2012 (08-02-2012, 04:22 PM)HeadyBoy Wrote: Tried doing this, it works, but instead of taking me to the time period BEFORE I unlocked a door, walked in, and spawned a monster, the door had already been opened and the monster was not there. As if it just teleported the player.You mean - after you died? Monsters always despawn when you die. You have to find a way to reset the whole process if you want the player to do the same thing again after he died. RE: Custom story autosave points? - HeadyBoy - 08-02-2012 Solved now. Thanks for your help. |