Collision check in Multiplayer

This is something that, I could not find anywhere, maybe I missed something. But, when I followed Leepo’s tutorial. I instantiated, 2 prefabs…player(clone) and player(clone)…Bullet is instantiated, from within playerscript. I want to ask, 3 things :

  1. How can I change the name, of these two prefabs, such that, both prefabs, will have different names, in both client and server?

2)How can I make, both players ignore each others collision?I know of physics.ignorecollision …but no idea, how to apply this, for two players, which comes, from same prefab?

3)This is the important thing that I need to know.Bullet should collide with other player…
such that, the player instantiating bullet, doesn’t do a collision with the bullet, but, when it hits the other player, other player’s variable damage increases, by , let’s say 5 .How would I do this?Please show me, an example code, or logic in it.

Thanks in advance.
[/code]

Ok, maybe too many questions is the reason, why I’m not getting any answers. I got myself out of most of the problems. But I need to know, one thing, One single thing…Pleeeeeeease… :smile:

One prefab instantiated twice. One controlled by server, other by client. I want, to ignore collision, between these two instantiated players. Atleast tell me the logic. Pleaaaase…

Again, a thanks in advance… :slight_smile:

Hello agent47,
For the prefabs, I’d set up something in a script that changes their gameObject.name to a username or something else that would help identify them. For collisions, I suppose you could change the colliders around and make one a trigger that only adds damage if the other object is a bullet. I’m not sure how ground collisions would work then though.

Hope this helps some!