Light spot: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
==Entity Description== | ==Entity Description== | ||
An invisible light source. Can be turned on and off through inputs. | An invisible light source. Can be turned on and off through inputs. This is a static spotlight that can be pointed at another entity. | ||
==Keyvalues== | ==Keyvalues== | ||
* {{kv targetname}} | * {{kv targetname}} | ||
: <string> The targetname value for a spotlight will point the light at the entity named. If no targetname is available, the entity will point with it's angles paramater. | |||
* ((kv angles)) | |||
: <degrees> This will control the direction the light points at, if no targetname is specified. | |||
* '''_light''' | * '''_light''' |
Revision as of 14:11, 3 August 2005
Entity Description
An invisible light source. Can be turned on and off through inputs. This is a static spotlight that can be pointed at another entity.
Keyvalues
- <string> The targetname value for a spotlight will point the light at the entity named. If no targetname is available, the entity will point with it's angles paramater.
- ((kv angles))
- <degrees> This will control the direction the light points at, if no targetname is specified.
- _light
- <color255 + integer> The color and brightness of the light. RGB colors need to be between 0 and 255. Brightness can be higher.
- _inner_cone
- <integer> This is the inner focus of the light, or the edge of the brightest part of the light. It will fade from here out to the
- _cone
- <integer>
- style
- <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
- pattern
- <string> A string of characters defining a custom pattern, a being most dark and z being most bright.
- _constant_attn
- <float> Brightens or dims the intensity of the light near its entity. A high constant will dim the light.
- _linear_attn
- <float> Brightens or dims the intensity of the light emitted. A high linear will dim the light.
- _quadratic_attn
- <float> Increase to make a light bright but not travel far.
- _distance
- <integer> Stops the light emitted from reaching beyond this distance. Useful in cutting down compiling time by not making lights extend infinitely.
Flags
- 1 : Initially Off
Inputs
- TurnOn
- Turns the light on.
- TurnOff
- Turns the light off.
- Toggle
- Toggles the light on or off.
- SetPattern
- Sets the light's custom appearance to the input's parameters.
- FadeToPattern
- Fades from the light's old pattern to the new one.
Outputs
See Also
- light
- point_spotlight
- Light entities
- Tutorial: Quadratic/Linear/Constant in Lights
- Tutorial: Source Lighting