Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Change variable on all clients from server

$
0
0
Hi! I need have to a variable on server that clients consults and in function of its value do something.

I had been trying with a [SyncVar] but this is not what I want. Because I want that if one client connects to server, change this variable on the server and the rest of clients that connect later check this variable and work in function on that.
And now if I use syncvar each client has his own variable, synced with the server yes, but it is his own variable, isn't shared between clients....

Change variable on all clients from server

Viewing all articles
Browse latest Browse all 16796


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>