Closed GeekBrony closed 7 months ago
Its unclear how this will fully work.
Currently DestroyAllClientObjects()
is called automatically by OnClientDisconnected
to clean up objects, but I assume you new function would have to be called manually before disconnecting?
One problem I see with this is that the player object wont have its network state cleaned up, like its netid or callbacks. It might be better instead to use an UnspawnHandler
for the player object that would allow Mirage to clean up without destroying the gameobject
Thanks for the clarification. I'll try that instead.
This feature is useful only in a scenario when disconnecting from one server but having their client keep the local player object spawned, so they can connect to another server with their current local player object.