On off lights in pattren unreal engin4

i have some lights. that on off sequence wise one by one. i want to switch on and off lights in some pattern like led colorful lights. how can i do that. as first all light runs one by one… then two two lights, then 3 lights on at a time then next 3 lights . and so on. how can i do that.

Something like this:

Create an array of lights; Index is set to 0, Number is set to the number of lights you want to light up at a time. Turn On / Off are just my interfaces, you need to set your On / Off functions there.

And it works fine when the number of lights may be divided by the Number. If you have 8 lights and you want them to light up three by three, the least two won’t be turned on.

310437-lights.gif

i want to on off lights automatically. how can i do that. on event tick its totally mess up and on event begin play only one light on.

Use a Timer instead of Tick.