Hello there!
I'm working on a multiplayer shooter and the plan is that the dead bodies of killed players stay on the scene and the player respawns as the new player object. I'm new to networking and my problem is that the new object is not a local player.
Respawn as a new object
I'm working on a multiplayer shooter and the plan is that the dead bodies of killed players stay on the scene and the player respawns as the new player object. I'm new to networking and my problem is that the new object is not a local player.
Code (CSharp):
- public void respawn()
- {
- GetComponent<NetworkIdentity>().localPlayerAuthority = false;