Equivalent of UNET Syncvar
Options
Hi,
What would be the equivalent of "syncvar"?
Context: I have a script on an object and I'd like to keep track of the number of players standing on the object as they enter/exit a trigger. Only n players are allowed at one time and the code should "teleport" any surplus players a little distance away. Would something like syncvar be the best way to track this across the network (there will be multiple such objects)
If no syncvar, can I store variables on the server so that each client can decide what to do. Room Properties maybe? Is that the best way?
Thanks!
What would be the equivalent of "syncvar"?
Context: I have a script on an object and I'd like to keep track of the number of players standing on the object as they enter/exit a trigger. Only n players are allowed at one time and the code should "teleport" any surplus players a little distance away. Would something like syncvar be the best way to track this across the network (there will be multiple such objects)
If no syncvar, can I store variables on the server so that each client can decide what to do. Room Properties maybe? Is that the best way?
Thanks!
0