[SOLVED] Flickering light - sync every entity

Avatar
Konke
161 Posts
Posted Jun 13, 2015
I was wondering if you'd share some knowledge on how to make light flicker correctly. At the moment I use the following entities:

  • prop_static (lamp model)
  • light_spot
  • light

I'd like to sync everything so the entities turn on and off exactly at the same time, perhaps even add some sound effect to it. How would you do that?

Advertisement
Registered users don't see ads! Register now!
Avatar
josepezdj
2,386 Posts
Posted Jun 13, 2015
Replied 3 hours later
A logic_timer will help you out.
Avatar
Konke
161 Posts
Posted Jun 13, 2015
Replied 2 hours later

josepezdj wrote:
A logic_timer will help you out.

Thanks! Works exactly as I intended.

Avatar
Konke
161 Posts
Posted Jun 14, 2015
Replied 12 hours later
Oh, one more thing. How'd you solve this problem: let the light be lit most of the time with minor flickering at times.

At the moment I've set the oscillator option with high and low values. This makes the light turn on and off randomly. In theory it'll be 50/50 in the long run. I'd want it to be more like 80/20.

Advertisement
Registered users don't see ads! Register now!
Avatar
Idolon
417 Posts
Posted Jun 14, 2015
Replied 2 hours later
logic_timers have inputs that let you change the upper/lower bounds of the random value. Have the OnTimerHigh/Low outputs tell itself to change the bounds back and forth between the two random timing ranges you want. I've found that this sometimes acts a bit weird, so you might have to switch some things around before it works the way you want.