Multiplayer Respawn Problem
Hello, I am having some problem with multiplayer respawning player on death. So I have a function in Game Mode takes care of the respawn, here;
And in Game Player Controller I have another script called Respawn Request, which calls the function in the game mode. here;
And, I call this function in the player controller, in the actual player when he is dead.
So the problem is, as you can see I binded X to respawn as well. For debugging. When I press X, server player and client respawning themselves which is totally fine. But when I shoot one with the other, the problem begins. If client shoots server, server gets respawned, which is what I want. But if server shoots client, server himself again gets respawned.
So I dont understand why X key is working fine on respawning but when I call it on damage it doesnt work fine. Thanks in advance.
From the pictures you posted, it seems the problem might be that your Respawn event in your PlayerController class is is a server only event. The server always has the PlayerIndex = 0, when you are a listen server. So when you are using your event only on server it always gets the server PlayerController. For a dedicated server it is similar. you are always getting the first player.
Hope this helps.
answered Sep 28 '17 at 05:05 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here