x


Respawn player by Instantiation in multiplayer.

I've been trying to achieve this for a few days now, and can't make it work as intended. Most of the time I end up spawning extra clones or player's camera ends up on a different player.

First of all I'm doing this to be able to take advantage of the Unity's physics properties and visually "destroy" player's tank by adding rigidbodies to all its elements and unparenting them so that the gravity did its job and break down the model.

This works perfectly in single player. But when I try doing this in multiplayer all sort of problems come up.

I'm considering a non destructive approach, to just put the model back together and to position it at spawn point, and that would be my "plan B", but I would like to know if it's possible to do it the other way.

What's the correct way of cleaning up the destruction and then spawning a clean instance of a network player?

Thanks.

more ▼

asked Apr 18 '10 at 06:28 PM

Fogsight gravatar image

Fogsight
1 2 2 7

You're probably better off with plan B

Apr 19 '10 at 12:36 PM spinaljack
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1670
x681
x183

asked: Apr 18 '10 at 06:28 PM

Seen: 1374 times

Last Updated: Apr 18 '10 at 06:28 PM