Behaviour tree AI attacking Player

You can do it in the behavior BP, just make a new function that sets a BB value based on the proximity, and call that before the decision is made.