Need help with reading which object enters a trigger

Hi,

Is there a way to read which object enters a trigger?

Thanks!

Sure the trigger methods use a collider and from that you can get the gameObject.

From the manual:

function OnTriggerEnter (other : Collider) {
Destroy(other.gameObject);
}

Thanks! I already knew about that from the docs, but what i want is to read the name of the objects entering the trigger.

But thanks to your reply it hit me. What i now have is:

var go:GameObject;
function OnTriggerEnter (other : Collider) {
go=(other.gameObject);
print(go.name);
}

And it works! Thanks again!