Way to Respawn in map region?

I’ve been working on a game that will comply with the Xbox “no violence” TOS. In order to be creative and more convenient for the player, I was thinking of respawning them to local area first aid stations instead of the game starting point. Along the same lines, I’ve been experimenting with having a bad guy NPC come up to you and rather than kill, teleport you to a jail or penalty area.

I realize these are two different problems but they are similar in theme and I don’t want to flood the forum.

So far I’ve been unable to find search results for the respawn idea and am clueless on where to start. For the teleport, I’ve gotten as far as attaching a teleport part to an NPC, but he just pushes you with it like a shield. I’m thinking this has to do with limits of teleport pads not working while being moved?

Any ideas appreciated!

Player.RespawnLocation might be something you’re interested in making use of. RespawnLocation is a reference to a SpawnLocation object. If set, the player will always respawn at that specific SpawnLocation. If it isn’t, then standard spawning protocols apply.

1 Like

Thanks for the tip. I’ll start fiddling with it ASAP. I’m hoping I can use it in a “location aware” sort of way. If that’s not possible at least it’s an alternative to the game starting point!