Frictional Games Forum (read-only)

Full Version: How to reset scripts after player death?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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/tu...riptarea_s