- Home /
unity3d multiplayer respawn
hey, i have multiplayer game, and i want to to that when player is dead, he will get a button named "Respawn", after he clicking on it, he will respawn. how can i do that?
Answer by SomeGuy22 · Jul 30, 2012 at 06:53 PM
http://docs.unity3d.com/Documentation/Components/gui-Controls.html
Deactivate movement, and the collider, and any weapon scripts, and put a respawn button. Then, if he presses that button, reset the position of the player and turn everything back on.
Deactivate movement, and the collider, and any weapon scripts, and put a respawn button. Then, if he presses that button, reset the position of the player and turn everything back on.
do that if player have 0 hp(life)?
Um... yes do that if he has 0 life. You'd want to use GUI.Button to make the... button. Then make the transform.position of the player = the respawn point.
Answer by DLGScript · Jul 31, 2012 at 11:18 AM
Deactivate movement, and the collider, and any weapon scripts, and put a respawn button. Then, if he presses that button, reset the position of the player and turn everything back on.
do that if player have 0 hp(life)?
Use the "Add new comment" button ins$$anonymous$$d of posting an answer.