Spawn Player

I’ve got a menu system but how do I do when somebody enters a map that they spawn as a character.

Hey there,

if you setup a GameMode with a Default Pawn class (which is your Character BP), then the Engine will spawn the Character as soon as the game starts. In Multiplayer games this will also count for connecting players.

If you don’t want to have a default pawn spawnen, you can set the “Default Pawn Class” to none in your GameMode and spawn a character later in the game by using “Spawn Actor from Class” and using your controller to “Possess” the new spawned character. In multiplayer you would need to make sure that the server spawns this character and lets the controller posses it, not the client. But in singleplayer you can just use the normal “GetPlayerController” and call “Possess”.

Thanks for your help!

Hey eXi, I noticed you on this question, could you please help me on my question which is really closely related?

Im using the default pawn but GetPlayerCharacter gives null. Why?