How to stop and resume AI animation.

I’m making FPS game. And I would like to make time stop skill.

My ideal implementation would be the AI animation of the enemy will pause after doing the skill. After that I would like to have it play from that stopped frame after a certain amount of time.

It’s like DIO and Jotaro from Jojo’s Bizarre Adventure.

As a beginner, a simple implementation method is preferred.

I would appreciate it if you could tell me how to solve this implementation.

You can use the Set Actor Tick Enabled node to disable ticking for the enemies, effectively pausing their behavior.

You can then get the enemy’s animation instance using the GetMesh > GetAnimInstance node, then call the Montage_Pause node to pause the animations. If your enemies use simple animations, you can pause them directly using Set Play Rate and setting it to 0.

Then you can use a delay node as a timer and use the Set Actor Tick Enabled node to re-enable ticking.
Then use the Montage_Resume or set the Play Rate back to 1 to resume animations.

1 Like