# Bug: Montage End Fires Prematurely on Client

**URL:** <https://forums.unrealengine.com/t/bug-montage-end-fires-prematurely-on-client/424742>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, bug, client-server, unreal-engine, question, CPP\
**Created:** [May 10, 2018, 12:01am UTC](https://forums.unrealengine.com/t/bug-montage-end-fires-prematurely-on-client/424742 "2018-05-10T00:01:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mesothere](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mesothere](https://forums.unrealengine.com/u/Mesothere)\
**Post date:** [May 10, 2018, 12:01am UTC](https://forums.unrealengine.com/t/bug-montage-end-fires-prematurely-on-client/424742/1 "2018-05-10T00:01:36Z")

</div>

Hello guys,

I have some fairly simple logic to run animations. I run them from C++, and when the animation ends, I like to run a simple function to set some variables.

It looks roughly like this:

```
character->GetMesh()->GetAnimInstance()->Montage_Play(animName, speed);
    
FOnMontageEnded MontageBlendOutDelegate;    
MontageBlendOutDelegate.BindUObject(this, &UCharacterAnimationManager::AnimationEnded);

character->GetMesh()->GetAnimInstance()->Montage_SetEndDelegate(MontageBlendOutDelegate);

```

Although this is a minor simplification for ease of reading.

This does play the animation fine. On the server, the animation plays as expected - if I put a breakpoint in the AnimationEnded function then it occurs when expected (that is, after the animation has ended) - on the client however, the same logic doesn’t take place - the animation plays as expected, but the AnimationEnded function is _immediately_ called at the same time as play, despite the animation clearly not being finished with.

Is this a bug, or am I missing something in the implementation?

---

<div class="post-metadata">

**Author:** ![Zeetu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zeetu](https://forums.unrealengine.com/u/Zeetu)\
**Post date:** [May 11, 2018, 2:43am UTC](https://forums.unrealengine.com/t/bug-montage-end-fires-prematurely-on-client/424742/2 "2018-05-11T02:43:07Z")

</div>

I ran into a similar issue when using the Is Any Montage Playing blueprint node. It seems like UE considers the Montage to be over once it has entered it’s blend out phase which defaults to 0.25 seconds.
