Light spot: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (reused switchable light warning from light)
mNo edit summary
Line 1: Line 1:
{{wrongtitle|title=light_spot}}
{{wrongtitle|title=light_spot}}
{{base_point}}


==Entity Description==
==Entity Description==
Line 5: Line 6:
[[Image:{{PAGENAME}}.gif|left]]A cone-shaped, invisible light source. Can be turned on and off through inputs, though switchable lights may cause lightmap errors. This is a static spotlight that can be pointed at another entity.
[[Image:{{PAGENAME}}.gif|left]]A cone-shaped, invisible light source. Can be turned on and off through inputs, though switchable lights may cause lightmap errors. This is a static 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.}}{{clr}}
{{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.}}
 
* [[light]] and [[point_spotlight]]
* [[List_of_entities#Light_Entities|Light entities]]
* '''Tutorial:''' [http://www.editlife.net/tutorials.php?id=15 Quadratic/Linear/Constant in Lights]
 
{{clr}}


==Keyvalues==
==Keyvalues==
Line 43: Line 50:
* '''FadeToPattern'''
* '''FadeToPattern'''
: Fades from the light's old pattern to the new one.
: Fades from the light's old pattern to the new one.
==See Also==
* [[light]]
* [[point_spotlight]]
* [[List_of_entities#Light_Entities|Light entities]]
* '''Tutorial:''' [http://www.editlife.net/tutorials.php?id=15 Quadratic/Linear/Constant in Lights]
[[Category:Entities]]

Revision as of 14:58, 12 April 2008

Template:Wrongtitle Template:Base point

Entity Description

Light spot.gif

A cone-shaped, invisible light source. Can be turned on and off through inputs, though switchable lights may cause lightmap errors. This is a static spotlight that can be pointed at another entity.

Note.pngNote: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.
Warning.pngWarning:Adding a targetname to this entity creates a dynamic (switchable) light source, and creates extra lightmap pages for each uniquely named light. This occurs regardless of whether the light entity receives any inputs at run time. Lights should not be named unless they will be turned on and off via inputs, and then only sparingly. Lights given the same name will be triggered together and share lightmap pages. Many dynamic lights in a level can cause performance problems and other errors. Lightmaps calculated for named lights are conspicuously simpler and cruder than unnamed lights.
  • 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 edge of the light cone.
  • _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.