How to respawn all players from spectator to their respective Spawn Pads?

If you want them at specific pads, you have to store their positions in a map ([player/agent]vector3, not character I think) upon spawning.

I think you can use the player_spawner_device.SpawnedEvent for that.

Also as a note, when I used the Respawn() function, I found that :

  • Your players will probably loose their weapons, you’ll have to grant them again in order if you want the same inventory
  • You can’t set a Rotate in the first Respawn(), you’ll have to Sleep(0.0) twice and Respawn() again.
  • You’ll loose some kind of HUD too (like the score manager one)
  • You’ll also loose your movement settings if you set some (either in your island setting or your team settings device)
  • If you can’t spectate others after dying after a Respawn(), it’s okay, it only happens in the unpublished version of your island
2 Likes