function OnTriggerEnter but with tag SOLVED

Ok…really easy quick question. I have a collider and I only want objects tagged: Player to trigger it. Its the simple function function OnTriggerEnter (collision : Collider) { but how do I make it work only for a tag?

you put an IF in and check if the tag is the one you want to trigger this.

thats the only way to do it.

WORKED! thanks man!