Ai move working incorrectly, how to fix?

I honestly have no clue as to what had went wrong.
Video URL: - YouTube

Hello there.

Thank you post posting a video, this surely helps a lot when it comes to tracking down the error. In your case it’s quite simple really, you have a small error inside your code. I will try to explain the best way I can.

What is happening here is your AI is trying to move to Target Actor (you) and your location (in the world your XYZ) at the same time. It also updates both of these on pawn sensing, which by default it 0.5s if I remember correctly. Use Target Actor if eg. you want ai to chase your played and you can use location as target in case you want your player to be able to move out of sight and hide from the AI in which case it will just end up moving to your last known (sensed) location.
Also your cast doesn’t do anything here really. You can leave it if you want and then drag of As character and get world location from there or you can plug it as target actor.

I think that covers the basics, if anyone want to add on to my post or correct me please do so. Here to learn too!

I figured it out, it was like you said, it an error causing it try and move both to a location and an actor, as well as an invisible cone I had set up for finding the range of a spell that had been causing it. It always seems to be something completely unrelated xD

Awesome, great news. :slight_smile: