’m coding an ia with a c++ behavior tree. My concern is the fact that must follow the player then if he sees it more that returns in the other sequences. So I used a UPawnSensingComponent and in my mycharacter.cpp: I put as code:
and in mycontroller.cpp I added this to get my create variable in the blackboard:
here is my behavior tree to better understand:
Thank you for your understanding and patience