Author Topic: Using VCE to make a random flickering light  (Read 629 times)

I was hoping someone could help me out with getting a random flickering light working, using VCE. I've attempted it multiple times, but I don't seem to understand VCE that well.

Any help would be appreciated, thank you.

I'm assuming you mean a light that flickers randomly.

Something like this should work.
Quote
[x] 0   [0] [onActivate] [Self] [setLight] [Orange Light]
[x] 1   [1000] [onActivate] [Self] [fireRelay]
[x] 2   [1000] [onRelay] [Self] [fireRelay]
[x] 3   [0] [onRelay] [Self] [VCE_modVariable] [Brick] [Random] [Set] [1]
[x] 4   [0] [onRelay] [Self] [VCE_modVariable] [Brick] [Random] [Random] [5]
[x] 5   [0] [onRelay] [Self] [VCE_ifVariable] [Random] [==] [1] [6 7]
[x] 6   [0] [onVariableTrue] [Self] [setLight] [NONE]
[x] 7   [500] [onVariableTrue] [Self] [setLight] [Orange Light]
Every second it has a 1 out of 5 change of the light flickering for half a second. You need to activate it or whatever to start the loop.

This works perfectly, thank you! I'll be sure to put this to good use