Hello all i am currently trying to create a multiplayer turn base game i can get everthing to set up fine and i can get my server to switch turns to the client but i can not get my client to switch turns back to the server. I am using a widget that has a end turn button on it when i click the button it cast to the game state and runs a funtion on the server to end the players turn. As i said this works fine from server to client but not client to server can some one help me out
I might be late to the party but here is my take on it from information you provided. This event ServerSetActivePawn must call a event/function on server itself and you cannot implement functionality in PlayerController which I assume you do. You must have a GameMode class where you handle gameplay/game mode logic. That GameMode should be set as a default game mode in Project Settings.
When your event ServerSetActivePawn is called, cast it to your game mode, use GetGameMode as an object for casting and, as that object, call a function/event that makes changes you want like the one provided in the picture.