Point spotlight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 12: Line 12:
* {{kv angles}}
* {{kv angles}}


* '''Spotlight Length''' ''spotlightlength <integer>''
* '''spotlightlength'''
: Length of the spotlight beam.
: <integer> Length of the spotlight beam.


* '''Spotlight Width''' ''spotlightwidth <integer>''
* '''spotlightwidth'''
: Width of the spotlight beam.
: <integer> Width of the spotlight beam.


* '''Color (R G B)''' ''rendercolor <color255>''  
* '''rendercolor'''
: The color of the spotlight cone.
: {{color}} The color of the spotlight cone.


==Flags==
==Flags==


* '''Start On'''
* 1 : Start On
: Sets the point_spotlight to be turned on when it spawns.
: Sets the point_spotlight to be turned on when it spawns.


* '''No Dynamic Light'''
* 2 : No Dynamic Light
: Prevents a dynamic light from being generated by the point_spotlight. Dynamic lights can be costly for performance, so this flag should be checked to improve framerate.
: Prevents a dynamic light from being generated by the point_spotlight. Dynamic lights can be costly for performance, so this flag should be checked to improve framerate.


Line 36: Line 36:


* '''LightOn'''
* '''LightOn'''
: Turn the spotlight on.


* '''LightOff'''
* '''LightOff'''
: Turn the spotlight off


==Outputs==
==Outputs==

Revision as of 09:15, 18 August 2005

Template:Wrongtitle

Entity Description

An entity to draw a spotlight. Will draw a beam when the player views it side on, and a halo when it's facing towards the player. Unless the 'No Dynamic Light' spawnflag is checked, it will also create a dynamic light wherever the end of the spotlight rests.

Keyvalues

  • spotlightlength
<integer> Length of the spotlight beam.
  • spotlightwidth
<integer> Width of the spotlight beam.
  • rendercolor
#000000 The color of the spotlight cone.

Flags

  • 1 : Start On
Sets the point_spotlight to be turned on when it spawns.
  • 2 : No Dynamic Light
Prevents a dynamic light from being generated by the point_spotlight. Dynamic lights can be costly for performance, so this flag should be checked to improve framerate.

Inputs

  • LightOn
  • LightOff

Outputs

See Also