How can i add range attacking to my behavior tree?

Sorry for the slow reply. Had a bit of backlogged posts I had to attend to.
A simple prototype might give you an idea.