Pawn doesnt spawn to client multiplayer
I am making a multiplayer game and i have the next problem. When I execute two instances, the server instance creates the pawn and I can control it, but when is the turn of the client, the server doesnt spawn a pawn and I cant play with the client, I only can use an spectator pawn in the client.
Here a bit of screenshots:
Anyone knows why I cant spawn and play with the client? I execute all in the editor on a new windows with two instances. I changed the Engine.ini for the multiplayer and all is on LAN.
Thanks for your time
Using "GetGameMode" client-side won't work since GameMode only exist server-side so afaik SpawnPlayer would never be called from the Client to the Server. You need to make a "RunOnServer" event in the PlayerController where you make the switch from client-side to server-side and then call the SpawnPlayer function in GameMode.
answered Apr 20 '18 at 05:35 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here