PlayerState spawn

On the listen server, each world has a player state of

spawns in each world as many times as there are connected clients.

How does this work internally?

I would really, really appreciate it if you could show me the internal Unreal source as well.