AtmosphericFog and ExponentialHeightFog how to hide in building?

I make ExponentialHeightFog and AtmosphericFog like close visabylity distance to player, but how i can hide it when player go in building? I think it BP but i cant found good condition. (sory for bad ENG)