Why does my timeline only affect the latest spawned actor?

I’m trying to make a basic projectile with a niagara system attached to it and so far it’s working.

However I want to decrease the size of the attached niagara system gradually.
The niagara system has an exposed variable that I want to change gradually from 1 to 0.

This will only work for the last spawned actor. All the other projectile actors will just despawn after their lifetime as if the timeline node was never executed for them.

Is there another way to make a timeline for each spawned projectile? Or is there a better way to do it?

2 Likes

It’s because the variable ‘NS Fireball’ only every holds the latest actor.

One way, is to use an array to store all the fireball references, and another array of floats for the sizes.

A much easier way it to just put what you have here in a BP actor, and just spawn that instead :slight_smile:

1 Like

Thanks a lot!
This makes it a lot more clear to me.

I didn’t understand that it’s the same variable that is overwritten.

Spawning another actor which contains the logic works great :smiley:

2 Likes

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