![]() |
Problem with checkpoints - 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: Problem with checkpoints (/thread-10223.html) |
Problem with checkpoints - Max504 - 09-08-2011 Ok I know there are a lot of threads about script problems but I searched and I couldn't find a solution to my problem. I'm fairly new to making maps in amnesia (just a couple of days) but I think I'm getting the hang of it. In the custom story I'm making there is a part where you must run from a monster through a library, get into a room that locks when you enter (and the monster starts hitting the door) and then pass through a gate that is opened with a valve, the problem is that if the player gets killed in the chase he goes back to the checkpoint I placed before the start of the chase script but because the script already happened the monster doesn't appear again. I wonder if there's some way to make the game load the last autosave instead of just teleporting the player back to the playerstart area. Thanks for your help. RE: Problem with checkpoints - MegaScience - 09-08-2011 http://wiki.frictionalgames.com/hpl2/amnesia/script_functions Wrote: Code: CheckPoint("StartUpCP", "PlayerStartArea_1", "ResetMap", "DeathHint", "DescriptionOne"); So you make a startpoint where you want the player to respawn, set up a asCallback to reset the monster event, even a death note if you want. RE: Problem with checkpoints - Max504 - 09-08-2011 Thanks, I think I solved the problem. |