Set Niagara Variable does not update particle system

Hey, I have created a Niagara Particle System that should represent a fleet of ships in a space game. Now I want to control the amount of ships during the lifetime of the particle system with a user exposed variable I am updating with blueprints. Even though my spawn module is in my Emitter Update, the new ships aren’t spawning. Can anyone help me with that?

image

image

Hey there @anonymous_user_544e72b41! Welcome to the community! One thing, you don’t have to set the variable every tick unless the fleets are spawning every tick and changing the amount to spawn constantly. Though that is not likely your problem.

Is this a persistent Niagara system? Ie on an object? (it seems like it but I never assume).

Does the system work in simulation if you unbind the ShipCount variable? If so it could mean you aren’t setting the ShipCount correctly in either it’s BP side variable or in the sting name.

Also we must remember that the system time it will only fire the burst once at the start of it’s lifetime. So if the burst fires while it’s 0 and has no looping, it will not fire again. This also means that if you say hit the button and change the variable, it won’t fire unless the systems time is starting from the beginning.

Needs to be User.ShipCount