The ia does not leave eyes the Player ue4 C++

’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:

350851-hxejx.png

here is my behavior tree to better understand:

Thank you for your understanding and patience :slight_smile: