Here is what I got so far. I am trying to allow my bullets to pass through multiple targets(Zombies) instead of stopping at just one. In other words I will fire one bullet and this bullet will hit any zombie in line with my shot when I fire. So it will go through the first zombie and hit the next and possible stop at three or not.
if (hit.transform.tag == "Enemy")
{
hit.collider.SendMessageUpwards("ApplyDamage", damage, SendMessageOptions.DontRequireReceiver);
GameObject bloodHole = Instantiate(Blood, contact, rotation) as GameObject;
if (Physics.Raycast(position, direction, out hit, Mathf.Infinity/*range*/, layerMask.value))
{
if (hit.rigidbody)
{
hit.rigidbody.AddForceAtPosition(force * direction, hit.point);
}
}
Physics.IgnoreCollision(hit.collider, GameObject.FindWithTag("Enemy").transform.root.GetComponent<Collider>());
}