How to specify to my players which PlayerStart to spawn?

Hello.
I placed two differents PlayerStart in my scene.
When I launch the game, my players are spawned randomly on Playerstart1 or Playerstart2.

I already created a custom playerController, custom gameMode, custom GameState but I can’t find where to specify on which playerStart to spawn.

I tested to teleport the players at the beginning to a specific PlayerStart so I created a public variable (PlayerStart type). But it doesn’t show up in the Defaults tab. So I can’t link a PlayerStart actor to my Player Blueprint.

TL;DR : I want to choose where to spawn my players.

EDIT : this is working : Come Learn Blueprint Multiplayer with me! (aka Tom's a Glutton for Punishment) - Blueprint - Unreal Engine Forums

Thank you

1 Like

One way you could do it is to add an INT to the character and make a blueprint of the player part and add an INT there also.

Then make the spawning logic in the GameMode assign the same number character to the same number spawn. You would have to build this yourself.

I think there are some examples in the forums in the blueprint section

1 Like

You have to make your own spawning logic for this. There is nothing already included to do what you are trying to do.

You can find something like it here Come Learn Blueprint Multiplayer with me! (aka Tom's a Glutton for Punishment) - Blueprint - Unreal Engine Forums

there is no spawning logic in my GameMode. And there is no reference to the PlayerStart in my gamemode blueprint.

You can find something like it here Come Learn Blueprint Multiplayer with me! (aka 's a Glutton for Punishment) - Blueprint - Epic Developer Community Forums

If it were me, I would actually do something along these lines:

On the player, create a variable called: spawnPointID of type int
On the level blueprint, create an array of your spawnpoint (order matters)
On the player, @event begin play>Get spawnPointID>Get index(spawnPointID) from Spawn Point Array Level BP>Get position of element>Set player position to the position of element.

One advantage here is the ability to use triggers to cause your player to spawn at certain areas, which is useful if say, going through a door loads a level and the player needs to start at a certain point in the level. Just set the player spawnPointID when it is triggered, and then load your level.

do you have images for this option RAVaught?

I found a solution that seems to work for my project, give the playerstarts seperate object names and pull of the player controller → find playerstart (insert correct name) → getactortransform->spawn player.
-SamuelB