Motion Matching - Disable and Enable Movement

Hi all,

I’m currently using the Motion Matching movement system (similar to the sample) in my project. I’m trying to set up a scenario where, during gameplay, pressing a key (E) triggers an animation (BP Play Animation) for my character, after which the character should return to normal gameplay. However, I’m encountering an issue where the character continues moving during the animation and than never comeback to move correctly.

I tried using Blueprints to disable and then re-enable movement, but it didn’t work as expected. This was straightforward with the State Machine approach, but I’m struggling to achieve the same with Motion Matching.

Does anyone have any suggestions or solutions for this issue?
Thanks

SOLUTION

I I found a solution, though I’m not entirely sure if it’s the most optimal approach. Here’s what I did:

For some reason, when I use the “Play Animation” blueprint node, my Character loses its Anim Class reference. To fix this, I added a “Set Anim Instance Class” node in my Character Blueprint to restore the Anim Class reference once the animation finishes.