How do i make a projectile only collide with a specific mesh?

Unreal has Collision Channels to specify the behaviour of an actor when it collides (if you want it to collide) with another actor.

I suggest to study this article: Collision Filtering - Unreal Engine