# Lyra Animation Q: MM\_Unarmed\_Jump\_Fall\_Loop is missing a distance curve

**URL:** <https://forums.unrealengine.com/t/lyra-animation-q-mm-unarmed-jump-fall-loop-is-missing-a-distance-curve/550047>\
**Category:** Character & Animation\
**Tags:** unreal-engine, UE5-0, question\
**Created:** [May 6, 2022, 1:46am UTC](https://forums.unrealengine.com/t/lyra-animation-q-mm-unarmed-jump-fall-loop-is-missing-a-distance-curve/550047 "2022-05-06T01:46:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xi57](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xi57/32/1194660_2.png) [@xi57](https://forums.unrealengine.com/u/xi57)\
**Post date:** [May 6, 2022, 1:46am UTC](https://forums.unrealengine.com/t/lyra-animation-q-mm-unarmed-jump-fall-loop-is-missing-a-distance-curve/550047/1 "2022-05-06T01:46:44Z")

</div>

I’m working on a base GameFeatures plugin for Lyra and am trying to better understand its animation in particular.

I duplicated the `B_Hero_ShooterMannequin` class to my plugin. The only change I made is that I removed the logic about auto-equipping a weapon, so my pawns (for now) are always unarmed.

This caused my animations to be bugged out such that the random gender change would not have any animations at all. (If I left the default as male, then when it randomly switched to female the pawn wouldn’t animate. If I changed the default to female, the inverse issue would occur.)

I recall in one of the UE Lyra videos a dev comment (Michael Noland?) that the animations are bugged unless/until you equip a weapon, but I don’t remember which video or where. It was an off-handed comment and their fix was to simply auto-equip a pistol.

I was able to _mostly_ fix the animations by explicitly calling `LinkAnimClassLayers` on the skeletal mesh after the `OnCharacterPartsChanged` event.

The only visible issue now is that when I jump I get 1000s of spam warning messages complaining about:

```auto
LogAnimDistanceMatchingLibrary: Warning: DistanceMatchToTarget called with invalid DistanceCurveName or animation (MM_Unarmed_Jump_Fall_Loop) is missing a distance curve.

```

Any ideas what is causing that or how to fix it? There are virtually no changes in my project compared to ShooterCore except that I’m not equipping weapons. I’m guessing something in that weapon swap code affects the animations in a way that I need to emulate, I’m just not quite sure what.

Please and thanks for any insight!

---

<div class="post-metadata">

**Author:** ![xi57](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xi57/32/1194660_2.png) [@xi57](https://forums.unrealengine.com/u/xi57)\
**Post date:** [May 6, 2022, 5:17am UTC](https://forums.unrealengine.com/t/lyra-animation-q-mm-unarmed-jump-fall-loop-is-missing-a-distance-curve/550047/2 "2022-05-06T05:17:18Z")

</div>

As an update, I tested a 100% stock `ShooterGame` with zero changes on a fresh `LyraStarterGame` project.

Modifying `B_Hero_ShooterMannequin` to early-out of the `AddInitialInventory` BP function (no weapon will be equipped by default) causes the female pawn to never animate.

However, walking over one of the weapon pickups on the map will suddenly transform her from the A pose to full animation.

Point being this seems like something innate to how the animations are being done in Lyra and/or `ShooterGame`. I’ve not yet discovered if it’s a bug or a feature.

---

<div class="post-metadata">

**Author:** ![xi57](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xi57/32/1194660_2.png) [@xi57](https://forums.unrealengine.com/u/xi57)\
**Post date:** [May 7, 2022, 12:31am UTC](https://forums.unrealengine.com/t/lyra-animation-q-mm-unarmed-jump-fall-loop-is-missing-a-distance-curve/550047/3 "2022-05-07T00:31:54Z")

</div>

It turns out there were several bugs in `ShooterCore` and in `Lyra` that caused these issues.

I made a quick video showing exactly how to fix:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/9/0f9d05170a4ef50d63234b76bad6191b8259ef80.jpeg "LyraStarterGame 5.0.1 Fix Unarmed Animation Bugs") ](https://www.youtube.com/watch?v=8qTc2IcG31g)

---

<div class="post-metadata">

**Author:** ![damon21501](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@damon21501](https://forums.unrealengine.com/u/damon21501)\
**Post date:** [July 15, 2022, 9:20am UTC](https://forums.unrealengine.com/t/lyra-animation-q-mm-unarmed-jump-fall-loop-is-missing-a-distance-curve/550047/4 "2022-07-15T09:20:12Z")

</div>

It took me all night to find the cause of this bug. It was disgusting 🤮

Nice work, man 👍
