Need help with a simple AI.

I’m using Unreal Engine 4.12.

I’m working on a simple AI that walks through a level looking for the player. Once the AI finds the player they chase the player. If the player attempts to look at the AI or fails to run away after a few moments then the player loses. I used the Behavior Tree Quick Start Guide to get the basic AI going then I added a separate tree that gets the AI to move to constrained points around the level at random(Didn’t want to use roaming, and these points are used to teleport the AI around when certain events are triggered). This all works. Here is my problem:

I need the AI to stop just short of the player and ‘orbit’ them waiting for them to either escape or meet the data validation requirements to kill them. If the player escapes or waits long enough without interacting with the AI then the AI needs to go back to patrolling. Nothing I have tried has worked. Any suggestions or solutions?

Thanks in advance,
Pat

066ae33692a620d7e170fd9f0e95cfb5206fc7f0.jpeg