Point spotlight

From Valve Developer Community
Revision as of 19:30, 19 January 2009 by VDCBot (talk | contribs) (Robot: fixing template case.)
Jump to navigation Jump to search

Template:Wrongtitle Template:Base point

Entity description

This point-based entity is a light_dynamic with two glow sprite effects: a beam effect for viewers outside the light cone and a halo effect for viewers inside the cone.

  • If the 'No Dynamic Light' spawn flag is checked this entity will just provide a sprite effects, and will not illuminate other objects.
  • See also Lighting

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

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • LightOn
  • LightOff

Outputs