# Reverse montage?

**URL:** <https://forums.unrealengine.com/t/reverse-montage/141875>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [April 20, 2020, 1:49pm UTC](https://forums.unrealengine.com/t/reverse-montage/141875 "2020-04-20T13:49:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Graylord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Graylord](https://forums.unrealengine.com/u/Graylord)\
**Post date:** [April 20, 2020, 1:49pm UTC](https://forums.unrealengine.com/t/reverse-montage/141875/1 "2020-04-20T13:49:14Z")

</div>

Hi, I’m needing to play a montage in reverse from the end to the start, but there doesn’t seem to be a reverse play function.  
So I tried to play the animation, set it to near the end, then do a negative playback rate. But that doesn’t seem to work.

```auto

                Montage_Play(SheatheMontage);
                Montage_SetPosition(SheatheMontage, 28);
                Montage_SetPlayRate(SheatheMontage, -2);

```

Ideas?

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [April 20, 2020, 5:03pm UTC](https://forums.unrealengine.com/t/reverse-montage/141875/2 "2020-04-20T17:03:27Z")

</div>

The animations we precisely control in code is via interping a lambda from 0-1. Then call SetPosition adjusting for length of the montage:

montageInstance-\>SetPosition(montageLength \* lambda);

To play backwards just interp from 1 back to 0. But there is no “fire and forget” the lambda is updated every tick. AFAIK its the easiest (only?) way to precisely play, pause, reverse, and start an animation at any point, via code.

---

<div class="post-metadata">

**Author:** ![Graylord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Graylord](https://forums.unrealengine.com/u/Graylord)\
**Post date:** [April 20, 2020, 8:31pm UTC](https://forums.unrealengine.com/t/reverse-montage/141875/3 "2020-04-20T20:31:26Z")

</div>

Strange, I got it to work, but it’s not quite how I expect with the 0-1 ration.

If I do a setposition of 2, the entire animation plays, if I do 1, it ends and blends prematurely.
