# How to useAnimationMontage in C++

**URL:** <https://forums.unrealengine.com/t/how-to-useanimationmontage-in-c/310379>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, sequence, CPP, question\
**Created:** [March 10, 2015, 8:49pm UTC](https://forums.unrealengine.com/t/how-to-useanimationmontage-in-c/310379 "2015-03-10T20:49:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sleicreider](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sleicreider](https://forums.unrealengine.com/u/Sleicreider)\
**Post date:** [March 10, 2015, 8:49pm UTC](https://forums.unrealengine.com/t/how-to-useanimationmontage-in-c/310379/1 "2015-03-10T20:49:20Z")

</div>

Hey,

I’ve downloaded the free animation package from the market place, which includes a bunch of Animation Sequences.  
Now I’m trying to use one of these Animations for my Character.  
My Character is created in C++ (ACharacter class) with a HeroTPP USkeletalMesh:

```
ConstructorHelpers::FObjectFinder<USkeletalMesh> character_model(TEXT("/Game/TBContent/Models/HeroTPP.HeroTPP"));

GetMesh()->SetSkeletalMesh(character_model.Object);

```

I picked one of the Animation Sequences and created a Animation Montage with it.  
Then I’ve created a AnimationBlueprint with an empty slot.

Now I want to start this Animation Montage inside my c++ code

```
    	ConstructorHelpers::FObjectFinder<UAnimMontage> anim_move_montage(TEXT("AnimMontage'/Game/TBContent/Animations/forward_montage.forward_montage'"));
    	anim_move_montage_ = anim_move_montage.Object;

//start montage on move
    GetMesh->GetAnimInstance()->Montage_Play(anim_move_montage_,1.f);

```

But Montage\_Play() alwys crashes…

Can anyone help?

---

<div class="post-metadata">

**Author:** ![Sleicreider](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sleicreider](https://forums.unrealengine.com/u/Sleicreider)\
**Post date:** [March 11, 2015, 8:45am UTC](https://forums.unrealengine.com/t/how-to-useanimationmontage-in-c/310379/2 "2015-03-11T08:45:16Z")

</div>

solved the problem

---

<div class="post-metadata">

**Author:** ![rigmania](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rigmania](https://forums.unrealengine.com/u/rigmania)\
**Post date:** [July 17, 2017, 8:01am UTC](https://forums.unrealengine.com/t/how-to-useanimationmontage-in-c/310379/3 "2017-07-17T08:01:07Z")

</div>

What was a problem and how to solve it?
