Skip to main content

light_spot

light_spot icon
Point entity

A light_spot lights the map in a cone when you compile the map. With a Name, you can switch it 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.

Targettarget

Only for the map compiler, which aims the spot light at the target, such as an info_null.

Inner (bright) angle_cone

A key for the map compiler. It sets the angle in degrees from the center line of the spot light, and inside this angle the light is at full brightness.

Default 30
Outer (fading) angle_cone2

A key for the map compiler. It sets the angle in degrees from the center line, and outside this angle the spot light gives no light. Between Inner (bright) angle and this angle, the light fades out.

Default 45
Pitchpitch

Sets the up and down angle of the spot light in degrees, and the map compiler reads it. -90 points straight down, 90 straight up and 0 level along its yaw.

Default -90
Is Sky_sky

A key for the map compiler that sets whether the spot light acts as sunlight.

  • No (0) - A normal spot light
  • Yes (1) - Sunlight, which shines from the sky faces in the direction of the spot, as from a light_environment
Default No (0)
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.

Flags​

1Initially dark

The light starts off, and triggering it switches it on and off. It needs a Name to be switched

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​