How to use an AI controller to move player character to location?

How can I set up an AI controller to work with my player character so I can use the “move to location” node for click-to-move instead of the “simple move to location” node which is bad at pathfinding?

In my player character I’ve set this:

and then this in my AI controller:

but nothing happens.

if I possess my character from within the AI controller, the camera teleports to a different location and I can’t see a thing, nothing works anymore.

Is this not how you do it?

2 Likes

What specifically doesn’t work?

Have you tried debugging this to make sure the execution flow and variables are as you expect?

what I’m trying to achieve doesn’t work, the character won’t move to location.

yes, I am debugging it and everything is being executed

1 Like

Perhaps try the AI MoveTo latent action node instead?

1 Like

the problem isn’t the node I’m using, it’s the implementation.

I don’t know how to possess a player character with an AI controller

Did you find an answer for UE4.27 at least? I searched last year. I cannot believe no one found an answer or coded a comparable AI node that works on Player?

I too use the Simple node on Player, and it is imprecise. I dont understand why Epic coded it to stop moving when the Circle edge of the Capsule touches the location, instead of the Center point of the capsule. It can be off by 30 units. Very frustrating.

Hello, just checking in to see if anyone can find a solution to this exact thing that continues to occur in 5.1.

2 Likes

Please someone helps us. I have Player Controller I need just one node “Ai Move To” with callbacks (success of not) but why is it so hard in UE? I’m working for multiplayer game so spawning an additional pawn and attach it with floating movement to another pawn not working to me. Because I need a client prediction movement. And Authority system not allowing doing it