# why does the delay node prevent looping

**URL:** <https://forums.unrealengine.com/t/why-does-the-delay-node-prevent-looping/2311841>\
**Category:** Programming & Scripting\
**Tags:** delay, unreal-engine, loop, Blueprint, question\
**Created:** [January 31, 2025, 2:28pm UTC](https://forums.unrealengine.com/t/why-does-the-delay-node-prevent-looping/2311841 "2025-01-31T14:28:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![exe.caliber](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@exe.caliber](https://forums.unrealengine.com/u/exe.caliber)\
**Post date:** [January 31, 2025, 2:28pm UTC](https://forums.unrealengine.com/t/why-does-the-delay-node-prevent-looping/2311841/1 "2025-01-31T14:28:31Z")

</div>

I was making a very simple and basic event to spawn enemies in a specific area  
I wanted to spawn Niagara affect before spawning the Enemy at the same position for aesthetic reasons.  
at some point I added “delay node” between “spoon system at location” and “spawning the actor” node, after that the blueprint did not work as intended.  
I tried debugging for 4 hours without knowing what was the problem when I removed the "delay node " everything worked normally.  
when I add the delay only one enemy is a spawned  
but when I remove it five enemies are spawned without changing the loop  
in both cases whether I add the delay or not, the niagara effect spawn normally which further prove that the “delay node” is ruining what comes after it inside the loop  
why ? it is unreal 5.4

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/7/be7785550578cc04530f3e219f9330677f1df3b3.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 31, 2025, 2:37pm UTC](https://forums.unrealengine.com/t/why-does-the-delay-node-prevent-looping/2311841/2 "2025-01-31T14:37:07Z")

</div>

> [@exe.caliber](#):
>
> it is unreal 5.4

Unrelated. `Delays` do not work inside `Loops`. If you want to spawn something every x seconds, consider using a `Timer` instead.

---

<div class="post-metadata">

**Author:** ![exe.caliber](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@exe.caliber](https://forums.unrealengine.com/u/exe.caliber)\
**Post date:** [January 31, 2025, 2:38pm UTC](https://forums.unrealengine.com/t/why-does-the-delay-node-prevent-looping/2311841/3 "2025-01-31T14:38:26Z")

</div>

is there any way to make the Niagara effect on before the enemy ?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 31, 2025, 2:42pm UTC](https://forums.unrealengine.com/t/why-does-the-delay-node-prevent-looping/2311841/4 "2025-01-31T14:42:16Z")

</div>

Try something along the lines of:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/8/bb89c9b8982ab17902f1585629cd3a0badc672b9.png)

* * *

However, if you want to spawn all of them at once:

- run a loop to spawn 5 niagara effects
- `Completed` → `Delay`
- run a loop to spawn 5 actors

Or

- create the Niagara effect inside the enemy actor on Being Play but keep the _enemy bits_ hidden
- Begin Play → Delay → show the enemy bits

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 2, 2025, 2:42pm UTC](https://forums.unrealengine.com/t/why-does-the-delay-node-prevent-looping/2311841/5 "2025-03-02T14:42:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
