What I have is a script that OnCollisionEnter does and explsion but it will not work if you make the item it has to hit a trigger for another script. Other words if I take the object it is hitting and check is trigger in the mesh collider it wont work.
var explosion : GameObject;
function OnCollisionEnter(collision : Collision) {
var contact : ContactPoint = collision.contacts[0];
var thisExplosion : GameObject = Instantiate (explosion, contact.point + (contact.normal * 5.0) , Quaternion.identity);
Destroy (thisExplosion, 2.0);
}
What im wanting is help changing this over to function OnTriggerEnter (other : Collider) if possable