How can I make my a.i charge through my character instead of moving to location
You need to get the vector from your enemy to your character and the extend it behind your character to find the point to move to.
So, from your AI, use FindLookAtRotation, this gives you a 1 vector pointing in the right direction. Then take the world location of both actors and connect them with a ‘Distance’ node to get the distance between the actors.
Now you know the direction and distance, you can add 10% or the distance and add that to the vector between them to find the final target point
Amazing thanks.
Just to add a more advanced case to this that you probably won’t hit until later, if your Navmesh is set to dynamically generated/updated at runtime then you’ll need to make sure that the player character is not set to affect the navmesh (See bCanAffectNavMesh or something similar) otherwise the AI will see the player as an obstacle and path around it.