Let some objects pass through an object and not let other objects

Hello people, I hope you’re healthy and good.

I’m working on a 2D tower-defence game and I have a problem;
There is a tower in my game and my character is trying to protect it. What I want to do is adding a condition to the tower. It should pass my player and also my soldiers. But It must hold the enemy and get the attacks.

I hope I explained myself right, thanks in advance.

I recommend looking into Collision. Here are the UE4 docs that helped me get well-versed.

Also check this out:

Thanks for the quick and correct answers guys. It worked for me.