Light: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Slimmed down the tutorial list, refering people who came for the light to move on.)
m (Moved the See Also section, now that it only applies to the entity itself.)
Line 6: Line 6:
The '''light''' entity is basic yet essential to almost every map.
The '''light''' entity is basic yet essential to almost every map.
{{clr}}
{{clr}}
==See Also==
* '''Tutorial:''' [[Adding Light]] - A beginners tutorial on how to set up this entity.
* '''Tutorial:''' [[Intermediate Lighting#light|Intermediate Lighting]] - A continuation on the above tutorial, further dealing with how to set up light sources in general.


==Keyvalues==
==Keyvalues==
* {{kv targetname}}
* {{kv targetname}}
* {{kv light}}
* {{kv light}}


==Flags==
==Flags==
* 1 : Initially Off
* 1 : Initially Off


==Inputs==
==Inputs==
* {{kv targetname}}
* {{kv targetname}}
* '''TurnOn'''
* '''TurnOn'''
: Turns the light on.
: Turns the light on.
* '''TurnOff'''
* '''TurnOff'''
: Turns the light off.
: Turns the light off.
* '''Toggle'''
* '''Toggle'''
: Toggles the light on or off.
: Toggles the light on or off.
* '''SetPattern'''
* '''SetPattern'''
: Sets the light's custom appearance to the input's parameters.
: Sets the light's custom appearance to the input's parameters.
* '''FadeToPattern'''
* '''FadeToPattern'''
: Fades from the light's old pattern to the new one.
: Fades from the light's old pattern to the new one.


==Outputs==
==Outputs==
* {{kv targetname}}


* {{kv targetname}}
==See Also==
* '''Tutorial:''' [[Adding Light]] - A beginners tutorial on how to set up this entity.
* '''Tutorial:''' [[Intermediate Lighting#light|Intermediate Lighting]] - A continuation on the above tutorial, further dealing with how to set up light sources in general.


[[Category:Entities]]
[[Category:Entities]]

Revision as of 02:40, 28 September 2006

Template:Wrongtitle

Note.pngNote:For an article on light sources in general, proceed to Lighting.

Entity Description

Light.png

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

Flags

  • 1 : Initially Off

Inputs

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

  • Tutorial: Adding Light - A beginners tutorial on how to set up this entity.
  • Tutorial: Intermediate Lighting - A continuation on the above tutorial, further dealing with how to set up light sources in general.