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 :
- 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]