Hi
If a client connects to the server and in the server it has deleted object wich are spawned before. They will spawn on the client who connects. Is this a known bug? And how is it to avoid.
Thanks
realm_1
Hi
If a client connects to the server and in the server it has deleted object wich are spawned before. They will spawn on the client who connects. Is this a known bug? And how is it to avoid.
Thanks
realm_1
It’s not a bug, the object’s spawn command is still in the buffer.
You need to remove the command from the buffer when it gets destroyed.
http://unity3d.com/support/documentation/ScriptReference/30_search.html?q=Network.RemoveRPCs
Sounds interesting. But can Network.RemoveRPCs also called for objects wich don’t belong to me?
Network.RemoveRPCs(NetworkPlayer playerID) can be used on any peer, no matter which peer owns the networkView.
Network.RemoveRPCs(NetworkViewID viewID) can be used on any peer only when server owns (instantiates) the networkView.