How to script AI character movement?

Hi everyone, I’m learning vr development by making one of my favourite shooters, but i have very little experience using ai characters and creating behavours for them. Simply put I want to be able to tell the enemy ai to move to a specific spot in my level, where it will start attacking the player until it is killed or finishes shooting and retreats.I’m sure this isn’t incredibly difficult to do, but I’m struggling with where to start with implementing this.

Any tips or suggestions for learning how to do this would be greatly appreciated.

Thanks for reading and take care.

Hey there,

AI is usually a complex topic so I would suggest you take a look at the documentation here - This way you get to learn all about Behavior Trees, EQS, Perception, etc.

But to answer your question more directly - you can move the AI with the node AIMoveTo and pass a vector or actor. The AI will move to the location as long as is reachable via Navmesh.