Make collision react to actor (or pawn) components?

I’m trying to make door, which stops when colliding with anything, but i still want to exclude some objects, in this case a weapon and hands of first person player. I thought about doing it with component tags and casting, but i guess this is not how it works

You can do it with collision channels, docs are here Collision Filtering - Unreal Engine. Casting classes can be used also.