light

A light is an invisible light that the map compiler uses to light the map. A light with a Name can be switched
on and off while the map runs, and a trigger_lightstyle or a
global_light_control can give it another pattern.
Attributes
The entity also has these common keys:
- Compiler keys of lights: ZHLT Fade and ZHLT Falloff
targetnameTriggering the entity switches the light on or off, and the map compiler gives a light with a name its own light style. See Common keys.
_lightSets the color and the brightness of the light as R G B brightness, which the map compiler reads.
255 255 128 200styleSets a pattern for how the brightness of the light changes over time, and the map compiler bakes it into the map. A light with a Name ignores it, because that light gets its own pattern that you can switch: Custom Appearance, or steady light.The 12 choices
Normal (0)patternFor a light with a Name, sets its own pattern of brightness instead of Appearance. The pattern is letters from a for dark through m for normal up to z for double brightness, played at 10 letters a second.
If you leave this key empty, the light is steady.
zhlt_stylecoringA key for the map compiler, for a light with a Name or an Appearance. The compiler leaves the light of this style out of the map where it is dimmer than this value. ZHLT doesn't read it.
If you leave this key empty, the compiler uses its own default.
targetTurns the light into a spot light aimed at the named entity when the map compiler builds the map. The cone is 10 degrees, unless you add the key _cone with SmartEdit off. The game never fires it.
Flags
1Initially darkThe light starts off and turns on when you trigger it. It only works on a light with a Name
Notes
- If
trigger_changevalueortrigger_copyvaluechanges Custom Appearance while the light is on, the new pattern shows at once. Appearance (the style number) can't change while the map runs, because the light would then switch the lights of another style. See Changing keys
See also
light_spot- a light that shines in a conelight_environment- the sun- Light styles - how light patterns work
- light on TWHL - the Half-Life entity