i have a people around us (Rigged Humanoid model) so when when i shoot on that they have to dead i have a fps game with Sniper Man who shoot to enemy. but i want too when it shoots to people they also dead help me quick
Are you using projectiles or raycasts to shoot people?
Raycasts can return the target you shot, a quick check to make sure the hit target is an enemy and then you can do Destroy(hit.gameObject)
If you use projectiles you can use their collider to invoke the OnCollisionEnter(Collision col)
and then check that the collider is an enemy. If it is then you can destroy that game object in the same way by doing Destroy(col.gameObject)
give me solution for this…