Please or Register to create posts and topics.

[SOLVED] Flickering light - sync every entity

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?

A logic_timer will help you out.

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]
josepezdj wrote:
A logic_timer will help you out.

Thanks! Works exactly as I intended.

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.

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.