# Niagara: Kill particles on collision not working

**URL:** <https://forums.unrealengine.com/t/niagara-kill-particles-on-collision-not-working/122776>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [February 24, 2019, 11:16am UTC](https://forums.unrealengine.com/t/niagara-kill-particles-on-collision-not-working/122776 "2019-02-24T11:16:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cucharon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucharon](https://forums.unrealengine.com/u/Cucharon)\
**Post date:** [February 24, 2019, 11:16am UTC](https://forums.unrealengine.com/t/niagara-kill-particles-on-collision-not-working/122776/1 "2019-02-24T11:16:29Z")

</div>

**EDIT: Looks like it works in the 4.22 but “Collision Query” now is deprecated.**

 ![SSSSS.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/8/c8dade36c8b316ecdd7462b226eadaf681201134.jpeg)  
I have done this to kill particles when they collide. But there is something weird.

- In the main viewport or playing the game the particles aren’t being killed.
- Inside a blueprint, if I insert some component with collision, in that blueprint viewport particles are being killed.
- If I put this blueprint in the world, the particles ignore that collision again.

Is this a bug? At first I thought I was doing something wrong (and probably I am), but then, why inside the blueprint viewport are being killed?  
Is there anyway to solve this?

Thank you.

---

<div class="post-metadata">

**Author:** ![Cucharon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucharon](https://forums.unrealengine.com/u/Cucharon)\
**Post date:** [February 27, 2019, 11:10am UTC](https://forums.unrealengine.com/t/niagara-kill-particles-on-collision-not-working/122776/2 "2019-02-27T11:10:43Z")

</div>

No one knows how to do this? :-/

---

<div class="post-metadata">

**Author:** ![LucasDLK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucasdlk/32/88717_2.png) [@LucasDLK](https://forums.unrealengine.com/u/LucasDLK)\
**Post date:** [March 25, 2019, 9:15am UTC](https://forums.unrealengine.com/t/niagara-kill-particles-on-collision-not-working/122776/3 "2019-03-25T09:15:34Z")

</div>

how did you get the Particle.hasCollided ?

---

<div class="post-metadata">

**Author:** ![Sacamerdeman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sacamerdeman](https://forums.unrealengine.com/u/Sacamerdeman)\
**Post date:** [March 27, 2019, 10:35am UTC](https://forums.unrealengine.com/t/niagara-kill-particles-on-collision-not-working/122776/4 "2019-03-27T10:35:52Z")

</div>

You can use Expression -\> New Expression and then a ternary operator to select between two values.

---

<div class="post-metadata">

**Author:** ![Cucharon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucharon](https://forums.unrealengine.com/u/Cucharon)\
**Post date:** [April 21, 2019, 5:55pm UTC](https://forums.unrealengine.com/t/niagara-kill-particles-on-collision-not-working/122776/5 "2019-04-21T17:55:44Z")

</div>

> [@Sacamerdeman](#):
>
> You can use Expression -\> New Expression and then a ternary operator to select between two values.

Exactly same result. It only works inside the viewport of a blueprint. But it doesn’t work in the level viewport or ingame. (With “works” I mean that particles are killed when collide)

Edit: Now I am testing it using the 4.22.1 version, collision query now works as inteded and kills my particle but it is deprecated so now I have to deal with the new and more complex collision system and again my particles are not diying… \>.\<

---

<div class="post-metadata">

**Author:** ![dschertenleib](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dschertenleib](https://forums.unrealengine.com/u/dschertenleib)\
**Post date:** [July 19, 2019, 7:57pm UTC](https://forums.unrealengine.com/t/niagara-kill-particles-on-collision-not-working/122776/6 "2019-07-19T19:57:09Z")

</div>

It works fine in 4.22.3 with the Collision module

 ![Capture.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/5/752801d36fae20ab1103e29a76ffe070a3736486.jpeg)
