Turn on light that changes color.

Hi, I’m fairly new to unreal…

Anyways I’m trying to create a light where every time I turn it on it changes color(in this case, when I press B it turns on to 1 of 3 colors I have predetermined),then when I turn it off and on it goes to the next color.

Thanks I’m in advance.

Create an array of colours for your light with 3 values in it.

With your switch use a random int in range to do your GET value on the array, or just do a ++ if you want to go in order.

Set the colour of the light to be the value of the chosen array item.