env_lightrail_endpoint

From Valve Developer Community
Jump to navigation Jump to search

env_lightrail_endpoint is a point entity available in Portal series Portal series. It is used to display special effects at the endpoints of a lightrail.

Keyvalues

Scale Small FX (small_fx_scale) <float>
Scale of the small effect. 1 is the default size, 2 is twice that, etc.
Scale Large FX (large_fx_scale) <float>
Scale of the large effect. 1 is the default size, 2 is twice that, etc.
Pitch Yaw Roll (Y Z X) (angles) <angle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.

Flags

  • 1 : Start On (w/ Small FX)
  • 2 : Start With Large FX
Note.pngNote:Flag 2 is only mentioned as a comment in the FGD file. To enable it, remove the // behind the flag in the FGD.

Inputs

StartCharge <float>
Start charging the endpoint from the small to large state over a specified amount of seconds.
StartSmallFX
Start discharging particles at the small effects state over specified number of seconds.
StartLargeFX
Start discharging particles at the large effects state over specified number of seconds.
Stop <float>
Stops the effect at any point.


Parentname:
SetParent <string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <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 <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.

Outputs