The problem is that i can’t send Cmd from a non player object (PlayersManager).
I think i’ve found a better way to explain: Basic what i want is that when a client clicks a button the action from this button to be executed on this client and all other clientes.
Mind if you posted your netMsg code? might be able to give you a hand with it, took me a while to understand it but I could implement a login system with it, which was a trip to hell back and forth when trying to implement it with commands.
Not sure that I got your point, but why not do something like m_client = new client() and initialize it there instead of sending it as a parameter from somewhere else??
Also you don’t need to register the handler on client, you only register it on the server, you can also use networkMessage instead of the RPC to set the material, in the server code you’d do something like NetworkServer.SendToAllConnections(netMsg); and don’t forget to register the handler on client.connection.RegisterHandler();