-
Notifications
You must be signed in to change notification settings - Fork 51
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:

-
OnTurnedOnandOnTurnedOffare triggered whenever thecomp_flickerwants to turn the light on or off. Here they simply enable and disable thelight_spotandpoint_spotlight. -
OnFlickerOnStart/OnFlickerOffStarttrigger at the beginning of the sequence, which useful for triggering sounds that play for the whole sequence. -
OnFlickerOnEnd/OnFlickerOffEndtrigger at the end of the sequence, which is useful for enabling use of the item after it is fully powered up. - The
TurnOnandTurnOfftriggerOnTurnedOn/OnTurnedOffto immediately turn on or off the target.