Light
Table of contents1 Entity Description2 Keyvalues3 Flags4 Inputs5 OutputsEntity Description
An invisible light source. If named, it can be turned on and off through inputs.
The light entity is basic yet essential to almost every map.
Keyvalues
- <target_source> The name that other entities refer to this entity by.
- <color255 & integer> The color and brightness of the light. RGB colors need to be between 0 and 255. Brightness can be higher.
- <choices> A preset pattern of diverse flicker effects.
Literal Value | Description |
---|
0 | Normal |
1 | Flicker A |
2 | Slow, strong pulse |
3 | Candle A |
4 | Fast strobe |
5 | Gentle pulse |
6 | Flicker B |
7 | Candle B |
8 | Candle C |
9 | Slow strobe |
10 | Fluorescent flicker |
11 | Slow pulse, noblack |
Note: Applies only to light entities with
targetname set.
- <string> A string of characters defining a custom pattern, a being most dark and z being most bright.
Note: Applies only to light entities with
targetname set.
- <float> Brightens or dims the intensity of the light near its entity. A high constant will dim the light.
- <float> Brightens or dims the intensity of the light emitted. A high linear will dim the light.
- <float> Decrease to make the light travel farther. Default is 1, ranges are 0 to 1.
- <integer> Stops the light emitted from reaching beyond this distance. Useful in cutting down compiling time by not making lights extend infinitely.
- _lightHDR [Episode One Update]
- <color255> BrightnessHDR
- _fifty_percent_distance [Episode One Update]
- <float> 50 percent falloff distance
- Distance at which brightness should fall off to 50%. If set, overrides linear constant and quadratic paramaters.
- _zero_percent_distance [Episode One Update]
- <float> 0 percent falloff distance
- Distance at which brightness should fall off to negligible (1/256)%. Must set _fifty_percent_distance to use.
Flags
Inputs
- <target_source> The name that other entities refer to this entity by.
- Turns the light on.
- Turns the light off.
- Toggles the light on or off.
- Sets the light's custom appearance to the input's parameters.
- Fades from the light's old pattern to the new one.
Outputs
- <target_source> The name that other entities refer to this entity by.
К оглавлению справочника
©
Valve Developer Community