Point spotlight: Difference between revisions
Jump to navigation
Jump to search
Note:Without the dynamic light this entity will just provide a sprite effect, and will not serve as an actual light source.
AceloLoget (talk | contribs) mNo edit summary |
m (revert) |
||
Line 1: | Line 1: | ||
{{wrongtitle|title=point_spotlight}} | {{wrongtitle|title=point_spotlight}} | ||
==Entity | == Entity description == | ||
An entity to draw a spotlight primarily consisting of two glow sprites: A beam when the player views it side on, and a halo when it's facing towards the player. Unless the 'No Dynamic Light' | An entity to draw a spotlight primarily consisting of two glow sprites: A beam when the player views it side on, and a halo when it's facing towards the player. Unless the 'No Dynamic Light' spawn flag is checked, it will also create a dynamic light wherever the end of the spotlight rests. | ||
{{note|Without the dynamic light this entity will just provide a sprite effect, and will not serve as an actual light source.}} | {{note|Without the dynamic light this entity will just provide a sprite effect, and will not serve as an actual light source.}} | ||
==Keyvalues== | == Keyvalues == | ||
* {{kv targetname}} | * {{kv targetname}} | ||
* {{kv parentname}} | * {{kv parentname}} | ||
Line 22: | Line 20: | ||
: {{color}} The color of the spotlight cone. | : {{color}} The color of the spotlight cone. | ||
==Flags== | == Flags == | ||
* 1 : 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. | ||
Line 30: | Line 27: | ||
: 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. | ||
==Inputs== | == Inputs == | ||
*{{i targetname}} | *{{i targetname}} | ||
*{{i parentname}} | *{{i parentname}} | ||
Line 39: | Line 36: | ||
* '''LightOff''' | * '''LightOff''' | ||
==Outputs== | == Outputs == | ||
* {{o targetname}} | * {{o targetname}} | ||
==See | == See also == | ||
* [[light_spot]] | * [[light_spot]] | ||
* [[npc_spotlight]] | * [[npc_spotlight]] | ||
[[Category:Entities]] | [[Category:Entities]] |
Revision as of 00:45, 3 October 2007
Entity description
An entity to draw a spotlight primarily consisting of two glow sprites: A beam when the player views it side on, and a halo when it's facing towards the player. Unless the 'No Dynamic Light' spawn flag is checked, it will also create a dynamic light wherever the end of the spotlight rests.

Keyvalues
- Template:Kv targetname
- Template:Kv parentname
- Template:Kv renderfields
- Template:Kv angles
- Template:Kv hdrcolorscale
- spotlightlength
- <integer> Length of the spotlight beam.
- spotlightwidth
- <integer> Width of the spotlight beam.
- rendercolor
- ⇆#000000rgb(0,0,0)⇆ 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