Learn how to integrate behavior designer with the sensor toolkit for unity. In this example I use the third person controller from opsive as well. (although you can make your own controller or use another).
Here we use sensor toolkit to see an enemy and find the parts of his body that are visible to attack.
Behavior Designer: https://assetstore.unity.com/packages/tools/visual-scripting/behavior-designer-behavior-trees-for-everyone-15277
Sensor Toolkit: https://assetstore.unity.com/packages/tools/ai/sensor-toolkit-88036
Github to download custom behavior designer actions for the sensor toolkit. You will need these to follow along. just download, unzip and place the folder within your unity assets folder. https://github.com/dumbgamedev/sensorToolKit-BD