How is it that both the server and the client list the same player id when they should be different? You can clearly see that in this case the server player is ‘Player 376’, and client 2 is ‘Player 378’ yet when the client only event “Pass Player ID Example” is run the server claims its ID is the same as client 2 (who is the one who pushed the button and passed its ID on as a variable).
If I’m understanding the situation correctly:
I’m assuming this runs in the PlayerController.
It will run in the PlayerController for the same player on client and server.
The fact that the message is printed on the screen of player 376 doesn’t really matter, because it’s running in the context of player controller 378 in both cases.
Assuming the second player is the “host” then there will be two PlayerController instances on that machine, one of which has local input, and one of which is only representing the remote player. RPCs called from the remote player will execute on the local players machine, but still on the PlayerController representing that (remote) player.