How can I place pawns to dedicated locations in multiplayer lobby?

Hi,

I’m using listen server for my lobby map and I’d like to place the player pawns at specific places.
For instance, imagine I have a kind of chess grid and I want to place the player pawns on each cases.

Each time a new player joins the lobby I want to place the pawns automatically.
The pawns cannot be moved by players, it’s just for display during the lobby.

I’m using blueprints, and I wrote the code in the GameMode with OnPostLogin. The host is correctly placed because it’s the server, but when other players join, they stay at the PlayerStart location.

How could I make the server place the other pawns? Aren’t the pawns location replicated automatically?

Could someone give me a hint on how to get it working?

Thank you in advance

There is a FindPlayerStart and ChoosePlayerStart functions in your GameMode that you can override in order to choose where each player should be placed.

Hi, thank you for the answer, I didn’t precise it sorry but I don’t want to use the PlayerStart.

I want to use 1 PlayerStart to spawn the pawns and then move them to the place I want, like a vector location.

Just create an actor class and drop them in the spots you want. In the GM FindPlayerStart function add code to get all actors of class (your custom point). This will give you an array of those points.

You can then get a copy for anyone of those points, then get the location of it (vector).