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 :D
asked Feb 13 '17 at 03:02 AM in Blueprint Scripting
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.
answered Feb 13 '17 at 08:59 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here