Get All actors off class only gets only one actor/ messes up the other actors

Hello,

for clarification i am on the Version 4.27.2

I have build a day cycle, in this cycle I have event Graphs with two events, to turn a separate blueprint actor with a point light on and off throughout the day cycle.
Each of them also have a timeline to have them turn on/off gradually.

My problem is that as long as there is only a single light actor in the scene it works just fine, but as soon as there is more than one, only a single light actor turns on when the event to turn them on triggers.
The others turn on instantly as soon as the event to turn the lights off triggered. I have added a picture of the path on how I built the lights.

Thank you for any help in advance!

Hi Aniki25x,

You can’t use timelines in a forloop like that. Move the timeline to the start, and do the ForEach in the Update of the timeline.

Poll your lights and set an array variable. This is a one and done thing.

IF (lights_array Length > 0) → Set Play Rate → Timeline (play from start) Update Pin: → Foreach Loop (lights_array) → Set Sensitivity

it works now, thank you for the help! :smiley:

1 Like

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