I have set up AI to patrol randomly and chase the player when seen, But when i loose sight of the AI, it just stand there and wont go back to patrolling or even chase the player again. Any ideas?
Hey @Crispy95!
Make sure to have a Finish Execute
node with it’s Success pin checked at the end of the execution chain in your task named “BTTask_Chaseplayer”.
You can also Alt + Tab into the Behavior Tree in runtime to observe the execution flow. I suspect it’s not reaching to your sequence named “Look Around”, in which case you won’t see it having a yellow outline.
Additionally, you can debug further by hitting apostrophe (') in runtime to open up the AI debugger. That key might not work for Non-English keyboards though, you can rebind the Activation Key
from Edit > Project Settings > Engine > Gameplay Debugger > Input.
Hope these help!