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
How to reset scripts after player death?
Eren20Kruger00 Offline
Junior Member

Posts: 7
Threads: 4
Joined: Nov 2018
Reputation: 0
#1
How to reset scripts after player death?

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?
04-11-2019, 12:39 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: How to reset scripts after player death?

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

Discord: Romulator#0001
[Image: 3f6f01a904.png]
04-11-2019, 01:54 AM
Find




Users browsing this thread: 1 Guest(s)