# Spawned potentially immortal particle system!

**URL:** <https://forums.unrealengine.com/t/spawned-potentially-immortal-particle-system/470973>\
**Category:** FX\
**Tags:** error, particle-systems, unreal-engine, question\
**Created:** [September 7, 2020, 4:27pm UTC](https://forums.unrealengine.com/t/spawned-potentially-immortal-particle-system/470973 "2020-09-07T16:27:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_bb2c863a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bb2c863a](https://forums.unrealengine.com/u/anonymous_user_bb2c863a)\
**Post date:** [September 7, 2020, 4:27pm UTC](https://forums.unrealengine.com/t/spawned-potentially-immortal-particle-system/470973/1 "2020-09-07T16:27:41Z")

</div>

Hello,  
so I’ve added particles to my gun thanks to GameplayStatics::SpawnEmitterAttached. The problem is that every time they’re spawned, they produce this error that logs on top of my play screen:

```
GameplayStatics::SpawnEmitterAttached spawned potentially immortal particle system! /Game/Levels/UEDPIE_0_Sandbox.Sandbox:PersistentLevel.BP_Deagle_C_0.ParticleSystemComponent_0 (/Game/Blueprints/Animations/PS_Muzzle.PS_Muzzle) may stay in world despite never spawning particles after burst spawning is over.

```

So far, I haven’t had any issue with my game so it might as well be a false positive. It is however concerning and that is why I’m looking for help here.

Spawning particles code:

> ```
> if (!MuzzleParticle) {return;}
> 
> UGameplayStatics::SpawnEmitterAttached(
> MuzzleParticle, 
> WeaponMesh, 
> TEXT("MuzzleSocket"), 
> WeaponMesh->GetSocketLocation(TEXT("MuzzleSocket")),
> 
> WeaponMesh->GetSocketRotation(TEXT("MuzzleSocket")),
> EAttachLocation::KeepWorldPosition);
> 
> ```

I’m calling that function in blueprint at the start of my shooting animation.

---

<div class="post-metadata">

**Author:** ![shipster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shipster](https://forums.unrealengine.com/u/shipster)\
**Post date:** [September 7, 2020, 5:06pm UTC](https://forums.unrealengine.com/t/spawned-potentially-immortal-particle-system/470973/2 "2020-09-07T17:06:59Z")

</div>

Could you try to activate “Kill on completed” in Cascade (under the required section)?  
This is just a guess. I dont know if the engine considers this…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bb2c863a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bb2c863a](https://forums.unrealengine.com/u/anonymous_user_bb2c863a)\
**Post date:** [September 7, 2020, 5:36pm UTC](https://forums.unrealengine.com/t/spawned-potentially-immortal-particle-system/470973/3 "2020-09-07T17:36:41Z")

</div>

I forgot to mention that I tried that, but didn’t think about restarting the editor.  
In any case, it didn’t stop the log (and I tried Kill on Deactivate too).

---

<div class="post-metadata">

**Author:** ![Kratosc3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kratosc3](https://forums.unrealengine.com/u/Kratosc3)\
**Post date:** [February 13, 2021, 8:26pm UTC](https://forums.unrealengine.com/t/spawned-potentially-immortal-particle-system/470973/4 "2021-02-13T20:26:33Z")

</div>

Try

![329678-ekran-alıntısı.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/a/b8a5aac114787c53277d23095cae3c19647a8280.png)

---

<div class="post-metadata">

**Author:** ![Kratosc3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kratosc3](https://forums.unrealengine.com/u/Kratosc3)\
**Post date:** [February 13, 2021, 8:26pm UTC](https://forums.unrealengine.com/t/spawned-potentially-immortal-particle-system/470973/5 "2021-02-13T20:26:42Z")

</div>

Worked For me

![329679-x.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/5/3855cd6037a086af556c8314594784ab58b406c9.png)

---

<div class="post-metadata">

**Author:** ![araz01](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/araz01/32/1028814_2.png) [@araz01](https://forums.unrealengine.com/u/araz01)\
**Post date:** [May 15, 2024, 2:17am UTC](https://forums.unrealengine.com/t/spawned-potentially-immortal-particle-system/470973/6 "2024-05-15T02:17:53Z")

</div>

set loops to 1 and duration to 1
