# How can I detect that the sword of a 2D character has hit an enemy?

**URL:** <https://forums.unrealengine.com/t/how-can-i-detect-that-the-sword-of-a-2d-character-has-hit-an-enemy/2693042>\
**Category:** Character & Animation\
**Tags:** unreal-engine, Collision, question\
**Created:** [January 18, 2026, 9:30am UTC](https://forums.unrealengine.com/t/how-can-i-detect-that-the-sword-of-a-2d-character-has-hit-an-enemy/2693042 "2026-01-18T09:30:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [January 18, 2026, 9:30am UTC](https://forums.unrealengine.com/t/how-can-i-detect-that-the-sword-of-a-2d-character-has-hit-an-enemy/2693042/1 "2026-01-18T09:30:57Z")

</div>

Hi!

I’ve just started to make a 2D game using the Paper2D plugin. I have this character which inherits from `Paper Character`:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/7/a47ea6efabe4e962c0c0b568df787bb69e12094b.jpeg)

**I know how to make the attack animation** , but I don’t know how to know if the sword has hit an enemy.

Maybe I need to add another Capsule component around the sword, and, probably, move the capsule with the animation. Or probably, just add another capsule component and don’t move it, but “activate” it when the player press the **attack** key.

How can I detect that the sword has hit an enemy?

Thank you!
