# \[UE4-27\] Does anyone know how to use an animated Niagara to damage enemies?

**URL:** <https://forums.unrealengine.com/t/ue4-27-does-anyone-know-how-to-use-an-animated-niagara-to-damage-enemies/494084>\
**Category:** FX\
**Tags:** unreal-engine, UE4, question, UE4-27\
**Created:** [February 4, 2022, 4:58am UTC](https://forums.unrealengine.com/t/ue4-27-does-anyone-know-how-to-use-an-animated-niagara-to-damage-enemies/494084 "2022-02-04T04:58:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javan\_HY1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Javan\_HY1](https://forums.unrealengine.com/u/Javan_HY1)\
**Post date:** [February 4, 2022, 4:58am UTC](https://forums.unrealengine.com/t/ue4-27-does-anyone-know-how-to-use-an-animated-niagara-to-damage-enemies/494084/1 "2022-02-04T04:58:16Z")

</div>

I’m using the “RPG FX Starter Pack” of this month’s free content. I want to use P\_Mage\_MagicMissile Niagara, but I don’t know how to apply damage to monsters through this Niagara. That Niagara moves. Is it possible to apply an Overlap function to an animated Niagara? If the niagara is moving and encounters a monster, I want to apply damage and make the niagara disappear. I am implementing it in C++. I’m using Niagara for the first time and I’m using the

NiagaraComponent = UNiagaraFunctionLibrary::SpawnSystemAttached()

function to return a Niagara to the component, but the position of the component is always stationary and Niagara is changing.

Does anyone know how to use an animated Niagara to damage enemies?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0cc94636](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0cc94636](https://forums.unrealengine.com/u/anonymous_user_0cc94636)\
**Post date:** [April 22, 2022, 2:57am UTC](https://forums.unrealengine.com/t/ue4-27-does-anyone-know-how-to-use-an-animated-niagara-to-damage-enemies/494084/2 "2022-04-22T02:57:55Z")

</div>

I would try the export collision data on the Niagara system, using the location data you can spawn a collision box at the location to check for collisions and then apply damage from there.

As for making the Niagara disappear, you can have the particles die after colliding inside th niagara system itself or kill it after the collision box detects an enemy
