1
TNet 3 Support / Re: How do you respawn a player?
« on: August 14, 2014, 12:01:36 PM »
Disregard, I figured it out. Was my error on the respawn script. First I had it attached to the object being destroyed, which clearly wasn't working. Then I had put it on an object I instantiated over the network - resulting in more ships respawning for no reason. Finally I figured it out and just placed it on a gameobject in the scene with a timer that resets and TNManager.Create's the new player if "myPlayer" is null.
For some reason I approached the respawn initially with the idea that simply restarting the scene would be simple since everything necessary to the player and dependent assignments happens when the Game scene is loaded. TNManager.Create worked just fine.
For some reason I approached the respawn initially with the idea that simply restarting the scene would be simple since everything necessary to the player and dependent assignments happens when the Game scene is loaded. TNManager.Create worked just fine.