Download

Going around in Circles with MP Spawning

Hey all.

So I have tried several different approaches at this with 0 working results.

I have a playable MP Game. I can get 4 people in , moving , replicating etc.

My issue is that I am trying to go from Menu to Server list to In-Game. and I cant for the life of me figure out how to assign each player a starting position. OR how to assign objects to them that they own,

I have been searching for tutorials on any kind of way todo this but all I get are results with the same questions.

I have tried saving the player class to the game instance in an array with the other players on server join, But this did not work.
I have tried iterating through the current players on the server through their controllers but this does not help with spawning them.

Should I just go the dirty route, iterate through and send their characters to an actor setup as a starting point?
Is there a proper way to get a class from one client into the server?

Any help would be greatly appreciated.

Im now thinking about just going the dirty route. As well as using a one time collision box to detect the player on the start area and assigning them to a start position.

Dirty Route failed as it appears you cant change an actors spawn point, only get it.

Don’t know if this helps you, but I removed all player starts and then used an “Event Post Login” to call on the server a “Spawn Actor” with the transform you might want. I’ve seen several examples where they use Target points as spawn points. Maybe you will have some luck with that.

Thank you Txukie, I will take a look at that

I’m having similar troubles. I found some decent spawning help from the new Gunslinger MP demo in the learn tab. Still can’t figure out how to get UMG to initialize for each player (or at all now that I changed my setup). The Gunslinger project seems to be the best place I’ve seen to at least start piecing things together though. May be worth a look for you.