Dead AI Need to remove Colliders

Hi

I have an AI which when shot will play an animation and will fall to the ground.

however there are 2 or 3 colliders enabled within the AI Object
1 for the head, 1 for the body, 1 is the Character Controller

I need seperate colliders for the head and stuff becasue i will be taking more health off if the player gets a headshot
But since the object is dead i wont need any of the scripts or colliders or rigidbody or anything

My question is, is there a simple way to remove everything or do i need to use the following code 2 or 3 times.

transform.FindChild("head").transform = GetComponent<BoxCollider>().enabled = false;

Thanks
Likdaboo

Just delete the highest object in hierarchy Destroy(gameObject) or set enable to false if you plan to reuse it.

BoxColliders = gameObject.GetComponentsInChildren<BoxCollider>();
foreach (BoxCollider thisBoxCollider in BoxColliders)
{
    thisBoxCollider.enabled = false;
}

?

@ SteveJ - Good fix.

@ Op - You probably know this but Instantiating a ragdoll would fix your prob and add well ragdoll physics ( Very cool looking stuff ). There are a few scripts floating around that copy the position of the skeleton and Instantiate the ragdoll in the same bone positions as the just destroyed player obj.