Question by
PogyManTV · Mar 12, 2017 at 04:17 PM ·
networkingmultiplayerplayerserverclient
Destroy only player after disconnecting from server
Hey, so by default what happens when player disconnects from server is DestroyPlayerObjects... But i don't want that because I'm making survival type game where player builds his own base but after disconnecting from server all of his stuff gets deleted so he will start from scratch after next login... Is there some good way of making that ? Thanks ;) Now it looks like this:
void OnPlayerDisconnected(NetworkPlayer player)
{
Debug.Log("Server destroying player");
Network.RemoveRPCs(player, 0);
Network.DestroyPlayerObjects(player);
}
Comment