UNREAL 4.22 - How to cancel or stop "AI Move To" node, after already started working?

Hi, im creating a Blueprint based AI, meaning i´m not using any BT, everything works perfect, but i canot cancel “AI Move To” once it started, the only way to stop it, is when itself causes “on succes” or “fail”, and i want to hit the AI with a freeze bullet, but it only works if the AI is on succes, not moving; if i do it while moving it continues walking until “on success” or “fail” happens and then i freezes, how can i stop “AI Move To” node while still working?

Please help

moveto.png

1 Like

You can get the CharacterMovement component and drag some nodes out of it.
I’m not sure if StopActiveMovement will work with AI.

If you use DisableMovement, that completely turns off the CharacterMovement. (It basically sets the MovementMode to None.)
You’ll then have to use SetMovementMode and pick a mode (e.g. Walking) in order to re-enable the character movement.

19 Likes

PERFECT!!! Thanks Dan

1 Like

I searched for so long before happening upon this! Thank you for your solution! This is exactly what I needed!

Another thing that even works better, is to stop the tick (enable tick to false), as you do, the character will stop moving, then, when it has to move, you restart the tick.

Well, which one does the trick?

Use the “disable movement” node

Try to get the “AI Controller”,then use “Stop Movement”

image

19 Likes

It’s ok but ai face is always at the point it’s moving

This is the better way :blush:
thanks

it works !!!

Cheers for the ino this has really helped with my project.

You’re my hero, can’t believe I was stuck looking for something so simple, thank you.