How do I set Variables for all instances of a blueprint from another blueprint

Hello, I am fairly new to UE5 and have come across a problem recently. I have a workbench that when I interact with creates a widget with various upgrades for my turrets (all of which are from the same blueprint) (range, damage, fire rate etc), when pressing the upgrade button it shows the meter go up and that it has changed values, which it has but only for one of the turrets (turret 4).

On construct it prints all turrets in the level but when pressing any of the upgrade buttons it only prints/upgrades one of them (always the same turret)

Additionally when i put the print string function before the “set turret list” it only prints all the turrets except the last one.

and when i upgrade one of the turret stats it only prints one turret

Im not sure what could be wrong as sometimes the turret list array variable has all the turrets and sometimes it is missing some.

i would like to know if there is anyway to change the variables of all the turrets in the level when when upgrading

i can provide more screenshots if necessary


all turrets are printed

1 Like

This should be an ADD node

image

You’re making an array with one turret in it :slight_smile:

In fact, you can just connect this and forget to loop

Thank you, works perfectly now

1 Like

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