|
Post by carbine on Nov 22, 2011 6:57:29 GMT
Hello. I'm making a disco on my JB map and I've made lights (point_spotlight) on the wall that change colour by one light turning off and another turning on. I did this by one light being on by default and an auto_logic turning that light off. Each light has 2 outputs, 1 turning the next light on when the current one turns off, and one that turns the next one off after a 0.5s delay (also when the current light turns off). The last one just does this to the first one.
Is there an easier way to do this because I want to ability to be able to turn this on and off and because if I just turn a light off, it just puts another one on :/
Thanks.
|
|
|
Post by Zeph on Nov 22, 2011 8:08:18 GMT
A random Logic_Timer which picks a random Logic_Case event could benefit.
For each Logic_Case entry, add "OnCaseN -> "disco_light_*" -> turn off which will turn off all lights that start with disco_light, eg "disco_light_1" Then add a light turn on to different entity outputs, with a small delay. OnCase01 -> "disco_light_1" -> turn on -> delay -> 0.1
Use the logic timers random timers, and "OnTimer -> Logic_Case -> PickRandomShuffle"
|
|
|
Post by carbine on Nov 22, 2011 17:54:47 GMT
Thanks for the help. It works how I wanted it now
|
|
|
Post by Zeph on Nov 22, 2011 18:51:54 GMT
Awesome :3
|
|