Skip to main content

light

light icon
Point entity

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:

KeyDescriptionDefault
Nametargetname

Triggering 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.

Brightness_light

Sets the color and the brightness of the light as R G B brightness, which the map compiler reads.

Default 255 255 128 200
Appearancestyle

Sets 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)
  • Fluorescent flicker (10)
  • Slow, strong pulse (2)
  • Slow pulse, noblack (11)
  • Gentle pulse (5)
  • Flicker A (1)
  • Flicker B (6)
  • Candle A (3)
  • Candle B (7)
  • Candle C (8)
  • Fast strobe (4)
  • Slow strobe (9)
Default Normal (0)
Custom Appearancepattern

For 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.

Coringzhlt_stylecoring

A 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.

Targettarget

Turns 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 dark

The light starts off and turns on when you trigger it. It only works on a light with a Name

Notes​

  • If trigger_changevalue or trigger_copyvalue changes 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​