Caution:

BaseLight is an internal entity and should not be used on its own.

BASE BaseLight

KeyValues

Brightness (_light) <color255> = 255 255 255 200

Color and brightness of the light.

BrightnessHDR (_lightHDR) <color255> = -1 -1 -1 1

No description provided.

BrightnessScaleHDR (_lightscaleHDR) <float> = 1

Amount to scale the light by when compiling for HDR.

Appearance (style) <choices> = Normal (0)

No description provided.

Possible Values:

NameValue
Normal0
Fluorescent flicker10
Slow, strong pulse2
Slow pulse, noblack11
Gentle pulse5
Flicker A1
Flicker B6
Candle A3
Candle B7
Candle C8
Fast strobe4
Slow strobe9
Underwater light mutation12

spawnflags (spawnflags) <flags>

No description provided.

Possible Flags:

NameValueDefault
Initially dark1

Custom Appearance (pattern) <string>

Set a custom pattern of light brightness for this light. Pattern format is a string of characters, where 'a' is total darkness, 'z' fully bright. i.e. 'aaggnnttzz' would be a steppy fade in from dark to light.

Fade Tick Interval (fadetickinterval) <float> = 0.1

The tick interval of the light's fade, in seconds. Lower values cause a faster fade.

Cast Entity Shadows (_castentityshadow) <boolean> = No

Objects illuminated by this light will cast a directional shadow.

Entity shadow offset (_shadoworiginoffset) <vector> = 0 0 0

A world-space offset applied to the shadow origin, in units. X Y Z.

No Sprite in Cubemap (_nocubemapsprite) <boolean> = No

If set, this light will not draw a sprite during cubemap building

Inputs

TurnOn <void>

Turn the light on.

TurnOff <void>

The the light off.

Toggle <void>

Toggle the light's current state.

SetPattern <string>

Set a custom pattern of light brightness for this light. Pattern format is a string of characters, where 'a' is total darkness, 'z' fully bright. i.e. 'aaggnnttzz' would be a steppy fade in from dark to light.

FadeToPattern <string>

Fades from first value in old pattern, to first value in the new given pattern. Pattern format is a string of characters, where 'a' is total darkness, 'z' fully bright. i.e. 'aaggnnttzz' would be a steppy fade in from dark to light.