How to create a randomized rocket barrage/artillery explosion sequence using Blueprint & Niagara?

I am trying to create an artillery barrage effect in Unreal Engine 5.6 using a custom Niagara system NE_Explosion. Basically what I’m trying to acheive is when I press a key (like Num 0), I want this explosion to spawn randomly multiple times across a designated wide area, with a slight, randomized delay between each explosion so it feels organic and also with randomized Niagara system size, so that explosions were not all the same size.

Any screenshots or logic flow advice would be massively appreciated! Thanks!

Hello there @Peyzaj.fla!

The best approach here, would be to create the trigger logic first with blueprints, using delayed timers for key presses, then summon the Niagara explosion effect, which would have it’s own internal logic for size variance.

There are plenty of resources to cover both stages. For the blueprint logic, please check the guide below:

And for a good example of a detailed explosion effect, please check the following tutorial:

That helps, thank you!

If you have a navmesh, you could spawn explosions in a radius around a specific location like so:

Target Loc on first event is fed from a linetrace in a function on a weapon here, but you could also get mouse location in worldspace or whatever. Depends how you’re controlling the artillery actor really. I essentially just turned the grenade launcher in my testbed project into a target painter lol.

First event starts the spawn loop, which closes itself by clearing timer when the int hits 0.

I’m using old school cascade explosion from starter content here, but spawning a niagara system should work too.