How to have the character remain in the world after the player has left

So I what the player character that the player is using to stay in the level after the player has left the game like in ARK
How would I do that?

in a multiplayer game? I guess just depossessing the pawn before the player leaves will do the trick. save the reference (pawn<->playerId) on the server and if the same player reconnects, possess again that pawn with his playerController