Hi ive got persistent level and levels stream in. I want Multiplayer with 2 players. Using ‘Choose Player Start’ override function in Game Mode gives one player starting at 0,0,0 the other at a player start location. Is there some simple way to get the players to both start at a player start?and even rotate to match the player start rotation? Is this too much to ask?
Seems like players spawn before player start, even though I am testing to see if level is loaded & visible first. F
eels like this problem must have been solved somewhere but can’t find the relevant docs.
(Epic Assistant is being typically long winded & useless.)
Add another player start.
Ive tried with different numbers of player starts and currently have 3. Doesn’t seem to help
First you need to understand how overall multiplayer works. It’ll help debug issues.
On connection the Game Mode immediately creates a controller, then spawns the default pawn and possesses it. It then replicates the controller and pawn to the owning player.
Sometimes the player will get the controller first, then on next update get the pawn. It happens and there isn’t much you can do to change this outside of rewriting a whole lot of core code.
I personally don’t modify the GM’s spawning functions. I work with them and also add custom spawning functionality after the initial join spawn.
For Default Pawn (GM/World settings) I use a simple Pawn class. No movement. I do world checks etc with this pawn. When everything is ready I call the controller and have it RPC up to server and notify the GM I’m ready for the main character. GM only exists on the server.
The GM will then use my custom spawning functions and spawn points to spawn and possess the main character.
All of this is very simplistic.
this looks awesome, thank you, I will give all this a go and report back. Sorry for my tardy response have been away