OTHER object when using OnTriggerEnter2D

Hey, I want to find out the name/layer/tag of the object which activated my trigger. I have two types of bullets. When my Player is hit I want to find out which bullet hit him. Is there any way to do this?

Thank you very much :slight_smile:

If the script is on the player, this should do the trick:

void OnTriggerEnter(Collider other){

    if(other.transform.tag == “armourPiercingBullet”){
        // armour piercing bullet code
    }
    if(other.transform.tag == “fireBullet”){
        // fire bullet code
    }

}