Can the player of a single player map re-spawn on death?

Avatar
PortalMaster
18 Posts
Posted Dec 31, 2014
I'm making a costume single player map in hammer, and i was wondering if there is a way to have the player re-spawn on death like in coop maps.

thanks in advance.

Advertisement
Registered users don't see ads! Register now!
Avatar
TeamSpen210
608 Posts
Posted Jan 01, 2015
Replied 5 hours later
ChickenMobile made this script which makes you respawn like the coop bots do. It's intended for making you appear to be P-Body (changing the player model, and spawning robot effects on "death"), but it shouldn't be difficult to remove those components.
You can't actually make the player respawn after dying (they'll always reload from the last save), so instead this script just detects when the player is about to die and teleports them to a reassembly machine.
Avatar
PortalMaster
18 Posts
Posted Jan 01, 2015
Replied 11 hours later
thanks for this, i think i may just leave it as a robot, it will look better that way