I can't stop actor movement when playing anime montage

HelIo everyone, my english is bad so I will try to keep this as short as possible.

I set Q for attack (Montage play) and right mouse click for moving.
I can stop movement when press another key like “S” but I can’t when I pressed Q to play montage.

I don’t want actor to move and rotate after Q is pressed, then after montage is finish, I want actor to continue moving to where my last clicked was.

This is my event graphs where i’m stuck. Thank you in advance


I think part of what is happening is your use of the Branch node in your first image on your Right Mouse Button event. You have it setting Moving to True on the true path and setting it to False on the False path; but with this it will never set itself as False. You also have some other flow control nodes that aren’t really going to do much in their configuration currently.

Try removing the sequence and gate nodes. Move the Set Moving to True node before the Move node. You’ll want to create a new variable and have it take in the value of the Location from the Hit Result.

Then you should be able to have the Q button event stay the same but add something new to the end of it. After the Q Custom Event runs set a delay that matches the length of time for the montage to play, then get the current character location and compare it with the location in the variable you used to save the Location vector and feed that into a branch node as the condition. If it’s true and they are equal then do nothing but if it’s False, that means you aren’t at the clicked location so then do Move To and feed the location variable into the location value and your character should proceed.

I don’t have the editor in front of me so I can’t put together an example but it’s pretty straight forward. Let me know if you have any issues :slight_smile:

Hello, thank you very much. it’s work pretty good by a bit modify.

Glad to hear it! Good luck with the rest of your project.