How do I destroy a player with local authority?

If I destroy it on server then the client with authority has time to send NetworkTransform data to the server before getting destroyed which results in error messages on server.

Received NetworkTransform data for GameObject that doesn’t exist
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()

If I destroy it just on the client then it doesn’t get destroyed on server and other clients.

The server can always receive ‘old’ messages if the delay is high enough, since UDP messages aren’t ordered by default.

So I probably wouldn’t worry about that.

2 Likes