Light dynamic

From Valve Developer Community
Revision as of 22:25, 16 September 2005 by Beans-v6 (talk | contribs) (This is basically a copy from light_spot -- I understand a lot is not accurate but it works for now.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Wrongtitle

Entity Description

A cone-shaped, invisible light source. Can be turned on and off through inputs, and can aim at any object, including moving ones. Dynamic lights are calculated on the fly in the game, which means they go much slower but are much more flexible. This is a dynamic spotlight that can be pointed at another entity.

NOTE: When using this entity, it is often necessary to turn the brightness value up significantly for the effects of the light to be visible. Values of 3000-4000 are sometimes necessary for light sources like streetlights.

Keyvalues

  • Template:Kv targetname 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.
  • Template:Kv angles This will control the direction the light points at, if no targetname is specified.
  • _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>

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.

See Also