# Root Motion systems do not respect PauseAnimations flag

**URL:** <https://forums.unrealengine.com/t/root-motion-systems-do-not-respect-pauseanimations-flag/369960>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine, pause, question\
**Created:** [September 9, 2016, 7:44pm UTC](https://forums.unrealengine.com/t/root-motion-systems-do-not-respect-pauseanimations-flag/369960 "2016-09-09T19:44:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_acbc7c02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_acbc7c02](https://forums.unrealengine.com/u/anonymous_user_acbc7c02)\
**Post date:** [September 9, 2016, 7:44pm UTC](https://forums.unrealengine.com/t/root-motion-systems-do-not-respect-pauseanimations-flag/369960/1 "2016-09-09T19:44:00Z")

</div>

4.12.5 source build (source build required for latest GVR plugin patch - no local changes)

When using a character (AI) with Root Motion from Everything set, setting bPauseAnimations on the character’s Mesh does not actually pause the animation instance.  
100% repro.

Code details:

UCharacterMovementComponent::PerformMovement is calling TickCharacterPose (line 1856). When root motion is enabled as above (and probably during a montage when that enum is used), HasRootMotionSources() and IsPlayingRootMotion() always return true.

A fix that is working for us: In ACharacter::IsPlayingRootMotion() add within the if(Mesh) block:

```
if (Mesh->bPauseAnims)
			return false;

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [September 14, 2016, 10:17pm UTC](https://forums.unrealengine.com/t/root-motion-systems-do-not-respect-pauseanimations-flag/369960/2 "2016-09-14T22:17:01Z")

</div>

Hey Victor,

I’d just like to let you know that we are looking into this. In the meantime, can you tell me if this still occurs in 4.13?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_acbc7c02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_acbc7c02](https://forums.unrealengine.com/u/anonymous_user_acbc7c02)\
**Post date:** [September 14, 2016, 10:29pm UTC](https://forums.unrealengine.com/t/root-motion-systems-do-not-respect-pauseanimations-flag/369960/3 "2016-09-14T22:29:44Z")

</div>

Confirmed that the issue occurs on 4.13. The same fix above works in 4.13 for us, as well.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [September 19, 2016, 7:56pm UTC](https://forums.unrealengine.com/t/root-motion-systems-do-not-respect-pauseanimations-flag/369960/4 "2016-09-19T19:56:27Z")

</div>

Hey Victor,

I’ve tested this on my end and I’ve been unable to reproduce it. My AI Character is pausing it’s animations as expected.

Could you provide an example project so that we can take a look at your setup?  
You can PM me the link to download it from Dropbox or Google Drive on the forums: [https://forums.unrealengine.com/member.php?160394-Sean-Flint](https://forums.unrealengine.com/member.php?160394-Sean-Flint)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_acbc7c02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_acbc7c02](https://forums.unrealengine.com/u/anonymous_user_acbc7c02)\
**Post date:** [September 20, 2016, 12:32am UTC](https://forums.unrealengine.com/t/root-motion-systems-do-not-respect-pauseanimations-flag/369960/5 "2016-09-20T00:32:13Z")

</div>

Uploaded / linked repro. see PrvMsg

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [September 20, 2016, 4:58pm UTC](https://forums.unrealengine.com/t/root-motion-systems-do-not-respect-pauseanimations-flag/369960/6 "2016-09-20T16:58:03Z")

</div>

Hey Victor,

I’ve entered [UE-36193](https://issues.unrealengine.com/issue/UE-36193). Thanks for providing the example project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_acbc7c02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_acbc7c02](https://forums.unrealengine.com/u/anonymous_user_acbc7c02)\
**Post date:** [September 20, 2016, 6:18pm UTC](https://forums.unrealengine.com/t/root-motion-systems-do-not-respect-pauseanimations-flag/369960/7 "2016-09-20T18:18:51Z")

</div>

certainly. As mentioned, the fix was pretty straightforward for us, though it could use some heavier testing with systems that actually use root motion more extensively. Should that go through a pull request, or just link the info to into UE-36193?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_280dd372](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_280dd372](https://forums.unrealengine.com/u/anonymous_user_280dd372)\
**Post date:** [September 22, 2016, 7:49pm UTC](https://forums.unrealengine.com/t/root-motion-systems-do-not-respect-pauseanimations-flag/369960/8 "2016-09-22T19:49:56Z")

</div>

I have an internal comment noting that there is a possible solution in the Answerhub post. Just like pull requests, they’ll probably review the solution you’re using and see if they want to do it that way or some other way.
