How to respawn player

I’m making a 2D side scroller game for mobile, right now i have it if you die it reloads the level but that also cuts off the background music and makes it start all over. I need to make the pawn get deleted and respawn instead of refreshing the level. I have tried a few things but i’m not sure how to do this.

Im not on pc but i think you need to do it with this setup:

  • when you die, pass your pawn controller reference to player controller. (Remember do it before pawn is destroyed)
  • in player controller call run on server rpc and pass that stored controller controller to gamemode
    -in gamemode spawn character and possess that character with controller reference

Let me know if it works, if not ill check mine setup when ill be at home.

You can simply “teleport” your character.