Currently I have my pawn sensing set up so that once it sees “ThirdPersonBlueprint” it will begin to chase the player. The problem i’m having is sometimes while making a quick 180 turn the AI will lose sight of the player and will just stand there until it sees it again. How do i set the blueprint below so that once the AI is following the character it does so forever and never stops following. Any help is appreciated, thank you!
You can try lowering the Sensing Interval and increasing the Peripheral Vision Angle properties, i think that will improve the vision of the AI.
I’m guessing you are carrying out a check every tick, to see if the AI can see the player. If that is the case, what is happening is that your AI is failing the check.
If you want the AI to follow the player forever, stop checking to see if the AI can see the player (usually by hiding the check behind a boolean flag). That way, it will only ever move towards the player, and not risk failing the check and stopping.
Hi Nafffann,
What you maybe want to do is when your AI get sight of your player, set a boolean variable to True, Something light ‘HasSeenPlayer?’.
Then on the EventTick node, have a branch to check if the ‘HasSeenPlayer?’ variable is true, and if so then ‘AI Move To’ the players location.
Hope that helps, however if you need any more assistance do let me know!
Connor.