How to remove Niagara ribbon particles based on spline progress

Hello!

I’m trying to make Niagara ribbon particles to follow a spline drawn by user. After the spline has been drawn, player’s character starts to follow the created spline. The current scratch module is able to make the particles follow the spline, but is there a way to dynamically remove the particles based on the player character’s progression along the spline? I’m using Distance Along the Spline at Spline Point’s value to track the player’s progression through the spline. The value is set with user parameter to the Distance input.

Here’s the scratch module:

And here’s the system overview:

I was able to remove the ribbon particles dynamically by making a second scratch module to the RibbonParticle emitter. The problem was mainly that the user parameter Distance did not update inside the base emitter, and the killing logic had to be handled inside the RibbonParticle.

Emitters:

Base’s scratch module:

RibbonParticle’s scratch module:

Kill Particles module: