-
Notifications
You must be signed in to change notification settings - Fork 36
comp_flicker
Spencer Brown edited this page Feb 4, 2024
·
2 revisions
This logic entity generates repeated on-off inputs, to simulate a fluroescent light turning on/off, power failures, etc. When triggered, the target is turned on or off, with randomised delays that increase over time. The FlickerOn
input ensures it starts off and ends on, and FlickerOff
does the opposite. To set it up, define both the OnTurnedOn
/OnturnedOff
outputs so it knows how to control the target entity, configure durations, then fire one of the inputs.
An example configuration for the entity is shown below:
-
OnTurnedOn
andOnTurnedOff
are triggered whenever thecomp_flicker
wants to turn the light on or off. Here they simply enable and disable thelight_spot
andpoint_spotlight
. -
OnFlickerOnStart
/OnFlickerOffStart
trigger at the beginning of the sequence, which useful for triggering sounds that play for the whole sequence. -
OnFlickerOnEnd
/OnFlickerOffEnd
trigger at the end of the sequence, which is useful for enabling use of the item after it is fully powered up. - The
TurnOn
andTurnOff
triggerOnTurnedOn
/OnTurnedOff
to immediately turn on or off the target.