bullet damage problem

I wrote a collision and bullet damage script, bullet is tagged as bullet and both are rigid bodies plus both triggers are checked so i can’t figure out why it isn’t working?

using UnityEngine;
using System.Collections;

public class BulletDamage : MonoBehaviour {

public int HEALTH=100;	
public GameObject bullet;	
static public int bulletDamage = 25;
public GameObject clavicle;
public GameObject soldier;
void OnTriggerEnter(Collider other)
	if(other.tag == "bullet");
		HEALTH = HEALTH - bulletDamage;

	if (HEALTH<=0)
		clavicle.transform.parent = soldier.transform; 

if Both are rigid Bodies and moved by physics, they don’t trigger each other, but collide.

See this to understand: Unity 3d: Collisions, Triggers, Rigidbodies, and Kinematics - YouTube

Also, for fast moving bullets, what you’re trying to do isn’t ideal either, because the bullet could miss the body or you need to step up the simulation precision. I’d recommend to use raycasts to find out where you hit