How do I stop / cancel an AI character's current movement?

I’m current rolling a dice to see if an AI Character that can see the player should attack the player or not.

However, if the AI Character is moving then I don’t know how to stop their movement.

Is this possible, without resorting to a dirty hack like telling the AI to move to its own current location whilst focusing on the player.

Thanks :slight_smile:

maybe a simple parallel node can help?
so you are still moveto and running other things, if lost sight of player, the node would return fail and another action down the sequence would move to another point.
Just my guess, haven’t test it yet.

This is for situations where the AI can see the player and will randomly attack them. It looks like I’m a victim of the Context Sensitive Blueprint Node menu.

When I’m in a task I can come out of the ‘AI Move To’ node owner but not a ‘Stop Movement’ Node, casting to the AI Controller sorts this out.

There is a stop movement blueprint node, which you can add to stop the movement.