Ignore trigger? *Solved*

hey!

i want to ignore a trigger attatched to my controller.
so i dont trigger myself. and i cannot tag myself, cause its on a instance.

i tried to ignorecollision on root (trigger?). but it seems like triggers work differently. or i wrote it wrong…

function OnTriggerEnter (other : Collider) {    
Physics.IgnoreCollision(other.collider, transform.root.collider);

im not 100% but i would do this:

var Me : Collider;

function OnTriggerEnter (other:Collider) {
if(other.CompareTag ("MySelf")){

// I haven't look how this function works exactly but somthing like this.
Physics.IgnoreCollision(Me, YourTrigger.Collider) 
}
}

thanks :slight_smile:
i think i know how i should do now.
the problem is just that i do it over network. so its hard to ignore the trigger/collision of the remote instance.

found a way to get it working without any complications!

function Start () {
Physics.IgnoreCollision(collider, transform.root.collider);
}

function OnTriggerEnter (other : Collider) {    
other.SendMessage("got_hit");
}

this code seems to work properly. it sends message to all collidable objects except the root collider of its own hierarchy.