Update variable Networking

Hi, im learning about Networking and im trying to make a multiplayer game, when one player press some button then show for the server and client, i tried with GameMode, GameState, PlayerState, but doesnt work.

(I’m sorry if I have bad grammar, I speak little English)

Something like this

Help me with example if u can please I will be very grateful :smiley:

Remember that each Actor in multiplayer game has Client side and Server side. All Widgets and input events are called on the Client side. If you want to send a variable to the Server, you need to call an RPC event in a replicated Actor (switch on the “Replicates” option in Actor class defaults) and send the variable via this event. If your variable is already on the Server side, you can set this variable to “Replicated”. This will update this variable for all Clients.

Here you can read more about UE Networking.

Thank you very much, I am going to see the document, it is very helpful