Choose player start to begin

i have a local multiplayer project and and i have many player starts,how can i connect to one of this players when i press (Host button) like he is the server owner (like 100 players and when i press host ,i need to connect to the player number 88 something like that)

You can have a central process which controls the player starts. It builds an array of all player starts with GetAllActorsOfClass. When a player starts, the call a function on this process which returns the next useable player start from the array.

If the player starts need to be from where the player was previously, then you need to store the array of player starts in the savegame.

i made that but i have an error now that the camera became under the hall

Yes, you have to put the player starts in a logical place :slight_smile:

i solved this error but i have another one
now when i choose the players to start in play menu the editors makes 2 players in same place and when i press host button it appears in the place i want but in join button the player appears in same place too, i need when i press join button it appears randomly not in same place of the player of host button

I think maybe you have the code which is allocating the start points wrong. There should be an event like ‘BookStartPlace’ which gives the next available player start and them removes it from the array. Next player get another place…

i’m sorry for this can you send me a photo or something to get it

yup, hold on…

In the level BP on BeginPlay:

( it’s an arrary of player start references )

Then you make a function called AllocatePlayerStart:

When you want to get the next player start you call the function.

That’s how it works, but it may or may not be good for you depending on where you’re calling it from…

i’m sorry i was Busy the days before, now i tried your option and the same thing happens that it joins randomly. i will send you the pictures of Blueprint i made of the host and join actions to can help me more

290024-player-controller-4.png