# Attack Animation Not Triggering

**URL:** <https://forums.unrealengine.com/t/attack-animation-not-triggering/1883504>\
**Category:** Character & Animation\
**Tags:** unreal-engine, question\
**Created:** [June 1, 2024, 5:13am UTC](https://forums.unrealengine.com/t/attack-animation-not-triggering/1883504 "2024-06-01T05:13:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chr1s1231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chr1s1231](https://forums.unrealengine.com/u/chr1s1231)\
**Post date:** [June 1, 2024, 5:13am UTC](https://forums.unrealengine.com/t/attack-animation-not-triggering/1883504/1 "2024-06-01T05:13:52Z")

</div>

Hi everyone,

I am very new to Unreal Engine and game development in general so sorry if this question seems crude or the issue is super obvius. Basically, I am trying to create a basic melee combat system for my game and I have been following along with a few different tutorials on YouTube. I will out line what I have done below.

1. I have created my Animation Montage for the attack animation.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/b/60bb69555930846c9f257d02008e5403670b8092.png)

1. I have converted my machete Static Mesh to a Skeletal Mesh.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/e/3ceb049f8da0c72e74c58155cba2dcef70d98bf9.png)

1. I have bound the machete Skeletal Mesh to the right hand of my Character’s Skeleton.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/8/008c6375a54809b6f5bbe733772bb16954a247d8.png)

1. I have created a code sequence in the character blue print that flows as follows:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/8/b885f0779bffbf9848933552c6c7001244145fe1.png)

1. I have attached a new node to the skeletal mesh in the veiw port for the character.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/9/e5961fc65e9a2ddb8f96e2aaef143688057f1387.png)

1. I have alligned the machete to the hand.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/c/56c31d458e54919a31ad6845b29a47ba3314907b.jpeg)

1. I have set the parent socket to the socket I created in the Character’s Skeleton.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/7/14703d82839e8771400bfd98dceb25a5f013e221.png)

1. I have put a ‘Defualt Slot’ node between my State Machine and Output Pose.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/9/ee9bfd4c5cae69e34850bfef34599c3ebe060d73.png)

1. I have made sure that the ‘Defualt Group’ is selected in the ‘Defualt Slot’ and that the Animation Montage is in the ‘Defualt Group’

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/b/8db0732f42ad8fea63fd55d759657fc2fefb41c7.png)

According to the tutorial, I should now be able to play the game and trigger the animation by right clicking but this does not happen.

I am starting to think that this has something to do with my State Machine, I have my Locomotion State triggering whenever the character moves, when the player presses space bar, the Locomotion State switches to a ‘Jump’ state and then back at the end of the jump animation. I am wondering if it is not triggering because of this for some reason. The tutorial does not mention anything about this however.

Apologies for this really long winded and convoluted post.

A link to the tutorial I have been following:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/e/59e4f014d640b7c996023330b8ab7ddde085566a.jpeg "How To Make Melee Combat System In Unreal Engine 5") ](https://www.youtube.com/watch?v=iPfU1SmzkkY)

Thanks!

---

<div class="post-metadata">

**Author:** ![chr1s1231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chr1s1231](https://forums.unrealengine.com/u/chr1s1231)\
**Post date:** [June 1, 2024, 10:24am UTC](https://forums.unrealengine.com/t/attack-animation-not-triggering/1883504/2 "2024-06-01T10:24:51Z")

</div>

So I was able to figure out the issue so I thought I would make a post in case anyone else has the same problem in the future.

If you look at the screen shot under step 5, I have two Skeletal Meshes, one name Jackson and the other named Mesh, I am not sure how I wound up with this but I simply had to delete the Skeletal Mesh named Jackson, reapply the Skeletal Mesh Asset to the Mesh and then re add Machete as a sub Skeletal Mesh and it worked. So my structure looks like this:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/6/b568a67b5be255ad72a1441c6f0574ec16adac79.png)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 1, 2024, 10:25am UTC](https://forums.unrealengine.com/t/attack-animation-not-triggering/1883504/3 "2024-07-01T10:25:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
