trigger_lightstyle

XashXT

trigger_lightstyle

A trigger for controlling light styles for a static light. A faithful recreation of the entity from Spirit of Half-Life.

Options

pattern Custom flickering style that is applied to the target object (and consequently, to all light sources that use the same light style).
m_iFade Makes the light fade smoothly.
m_iWait How many seconds pass before the light style in the style field is applied.
style Light style that is set after the timeout in the m_iWait field (if specified) or immediately (if not specified).

Usage Details

  • Remember that control of static lighting has a number of limitations. In particular, lighting is applied to a specific light style rather than a specific lamp, and the light style can be shared by multiple light sources. For example, changing light style 0 is strongly discouraged, because it will modify lighting for the entire map. However, you can assign a special style to light_environment and thereby create a rudimentary day and night cycle.