Problem with trigger collision detection

I need help with the following script

var health = 20;
var blood : GameObject;
var me : GameObject;
function OnTriggerEnter (other: Collider) {

	if (other.gameObject.tag == "bullet"){
		health -= 1;
		if (health <= 0){
			me.SendMessage ("die");
		}
	var bloods = Instantiate(blood, transform.position, Quaternion.identity);
	}
}
function bighit () {
	health -= 5;
	var blood1 = Instantiate(blood, transform.position, Quaternion.identity);
	if (health <= 0){
		me.SendMessage ("die");
	}
}

The problem is the object with a bullet as a tag will not register when it hits the object with the script in it

I think your Script is Ok, but i`ll tell you something:

  1. The “Enemy” of Collision/Triggering is Speed, I think your bullet movement is too fast so the collider can`t check if the bullet is in the Collider or not. you can Change the value of “min Penetration for Penalty” in Physics Manager. (for more information : http://docs.unity3d.com/Documentation/Components/class-PhysicsManager.html)
    or you can use this Script for your Bullet:
    http://wiki.unity3d.com/index.php?title=DontGoThroughThings
  2. or the simple problem but always happened (me too :smiley: ), forget to Attach Rigidbody in one of the Collider.

I hope it`s can help you

CMIIW