Skip to content
Spencer Brown edited this page Feb 4, 2024 · 2 revisions

comp_flicker

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:

configuration

  • OnTurnedOn and OnTurnedOff are triggered whenever the comp_flicker wants to turn the light on or off. Here they simply enable and disable the light_spot and point_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 and TurnOff trigger OnTurnedOn/OnTurnedOff to immediately turn on or off the target.
Clone this wiki locally