Tags and collisions

Hello,

How can i see in my enemy OnHit, if the projectile collides, instead of everything.
When the projectile hits my enemy, it must be destroyed, but i can’t filter it out.
This must be done in C++, and i can’t find any solution.

Thanks!