[UNET 5.2] Multiple local authority for 1 object?
Hello,
I am wondering if this is possible:
In mobile multiplayer, I have a TV in the scene and it has TVScript derived from NetworkBehaviour. So when 1 player tap on the TV, I want the TV to be turned on - which means I want TVScript from that client calling [Command] to the server so the effect of TV turned on can be distributed across network.
However at the current state, the TV can only have 1 client authority using AssignClientAuthority
since that TV has the same instance ID across the network.
Is it possible to have multiple local authority for one object so every clients can call [Command] on their own TVScript? without needing to go through player prefab and attach the script in there to call [Command]
As far as I understand, the server does not know the object, they only know the instance ID thus they set the instance id to certain player (only 1), am I wrong about the concept of AssignClientAuthority
and SpawnWithClientAuthority
?
Your answer
Follow this Question
Related Questions
localScale in network 0 Answers
Assign Network Manager an Online Scene with Script 0 Answers
How to use a script to control the nickname of online players 0 Answers
Unet Game on Phton Server? 0 Answers
local scale network 0 Answers