Frictional Games Forum (read-only)
How to reset scripts after player death? - 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)
+--- Thread: How to reset scripts after player death? (/thread-56313.html)



How to reset scripts after player death? - Eren20Kruger00 - 04-11-2019

I was recently trying to find a way to make the scripts reset after the player dies, so to still have the monster encounters appear another time just in case. I tryed looking for tutorials and some done script files, but I'm still not able to make this work. How I can do that?


RE: How to reset scripts after player death? - Romulator - 04-11-2019

You want to look at using CheckPoints and resetting most of your functions through the Checkpoint callback at the end. Once you run through this code, you can designate things you would like to be reset using commands like ResetProp(string &in asProp) to return entities to their original positions.

Have a look at the following wiki article for more information Smile

https://wiki.frictionalgames.com/hpl2/tutorials/scripting/checkpoints_using_scriptarea_s