# Character animation

**URL:** <https://forums.unrealengine.com/t/character-animation/447582>\
**Category:** Character & Animation\
**Tags:** unreal-engine, question\
**Created:** [April 21, 2019, 8:19am UTC](https://forums.unrealengine.com/t/character-animation/447582 "2019-04-21T08:19:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_744050c2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_744050c2](https://forums.unrealengine.com/u/anonymous_user_744050c2)\
**Post date:** [April 21, 2019, 8:19am UTC](https://forums.unrealengine.com/t/character-animation/447582/1 "2019-04-21T08:19:34Z")

</div>

Hi i am working in third person template and I have made an AI using the Mixamo character pack. I have it using a pawnsense, so when the AI sees character, he will chase them. I need help working out how to make the mixamo character swing his sword to fight character when close enough. How would i also attach a weapon to my character?

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [April 22, 2019, 10:58am UTC](https://forums.unrealengine.com/t/character-animation/447582/2 "2019-04-22T10:58:56Z")

</div>

Hello Alyssa.

I was playing about with that very issue the other day and I got a bear to chase me and when in range he does try to hit me. So it’s definitely doable, but I am fairly new to the engine so I just have the AI play it’s attack animation, with collision sphere attached on to its claws and when sphere collides with my body I receive damage and get pushed back a bit.

If you want to attach a weapon to a character you need to create a new Socket for your bone (eg, hand\_r if you are using a default character) and then just attach your weapon using AttachToComponent node.

Here is how I’ve done it for my AI character as a test.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/e/e4e4dba1ea8f91b46feda1eb1ce99c477205b190.jpeg "Unreal Engine 4 - Attaching Weapon to AI") ](https://www.youtube.com/watch?v=DvJY37tVhms)
