# Removing duplicate particles that occupy the same position \[Niagara\]

**URL:** <https://forums.unrealengine.com/t/removing-duplicate-particles-that-occupy-the-same-position-niagara/2675396>\
**Category:** FX\
**Tags:** unreal-engine, question\
**Created:** [November 15, 2025, 4:31pm UTC](https://forums.unrealengine.com/t/removing-duplicate-particles-that-occupy-the-same-position-niagara/2675396 "2025-11-15T16:31:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TactileVisions](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tactilevisions/32/1194626_2.png) [@TactileVisions](https://forums.unrealengine.com/u/TactileVisions)\
**Post date:** [November 15, 2025, 4:31pm UTC](https://forums.unrealengine.com/t/removing-duplicate-particles-that-occupy-the-same-position-niagara/2675396/1 "2025-11-15T16:31:01Z")

</div>

Hi,

I’m trying to get rid of duplicate particles that are at the same spot as another particle. I’ve created this scratchpad module that is supposed to set a bool, which is then used in a “KillParticle” module.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/3/9332d38be9d7062ffcebf69ac506047463546c48.jpeg)

However it doesn’t really work - it kills some particles, sometimes. It’s very random, even though the system is set to be deterministic. I’m wondering if there’s something obvious I’m missing here. Thanks!

---

<div class="post-metadata">

**Author:** ![TactileVisions](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tactilevisions/32/1194626_2.png) [@TactileVisions](https://forums.unrealengine.com/u/TactileVisions)\
**Post date:** [November 15, 2025, 7:36pm UTC](https://forums.unrealengine.com/t/removing-duplicate-particles-that-occupy-the-same-position-niagara/2675396/2 "2025-11-15T19:36:37Z")

</div>

This works better, but still removes some particles that shouldn’t be removed and keeps duplicates, depending on the amount of particles spawned. My guess is that this has to do with the fact that it’s a GPU emitter and there’s something going on with the particle identifiers/indexes, but I’m not sure what exactly and how to fix it.

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/8/c48f54a9709a994d4cda00eb54b9673c224d4911.jpeg)

---

<div class="post-metadata">

**Author:** ![TactileVisions](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tactilevisions/32/1194626_2.png) [@TactileVisions](https://forums.unrealengine.com/u/TactileVisions)\
**Post date:** [November 15, 2025, 8:05pm UTC](https://forums.unrealengine.com/t/removing-duplicate-particles-that-occupy-the-same-position-niagara/2675396/3 "2025-11-15T20:05:54Z")

</div>

Also, the reason why I switched to GPU was that with CPU the for loop didn’t seem to work (“Current Iteration” in Map For Index would always be zero). Is that how it’s supposed to be?

---

<div class="post-metadata">

**Author:** ![TactileVisions](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tactilevisions/32/1194626_2.png) [@TactileVisions](https://forums.unrealengine.com/u/TactileVisions)\
**Post date:** [December 3, 2025, 4:07pm UTC](https://forums.unrealengine.com/t/removing-duplicate-particles-that-occupy-the-same-position-niagara/2675396/4 "2025-12-03T16:07:02Z")

</div>

I’m still trying to figure this out. I’ve made some updates to my script. It kills too many particles (some vertices don’t have any), while leaving some duplicates. Not sure where to go from here. Does anyone have an idea about what might be going wrong?

 ![c8da404f8147520507b3a834c60479dd95af9a74_2_1035x382](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/7/e077087fb4fa395c5aea94392b170aa7ec75185e.jpeg)
