AI twitching while running towards me

Hi everyone! Right now I am making a third person shooter game and I have came across a bug where the AI run towards me but goes left and right. I am using behavior trees. Please Help!

Thanks!

Hi, why don’t you upload the behaviour tree of your AI so that we can help?

Hi, I have screen shots of my behavior tree. The behavior tree is only running one task so far and that task is running towards me.

THANK YOU!!! Everything works! Have a good day!

Firstly, I think you placed your AI actions in wrong order. In the sequence order, the blackboard will execute from left to right, so I think it should be “Find Player” → “Chase Player” → “Wait”. Secondly, in your case, when it executes “Chase Player”, I think because you set the radius of “GetRandomPointInNavigatbleRadius” too high, so that it may not run toward to you as you want it.