Template:Archived Page History/Template:I BaseTrain: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
m (Robot: fixing template case.)
Line 1: Line 1:
{{i targetname}}
{{i targetname}}
*{{I Parentname}}
*{{I Parentname}}
*{{i shadow}}
*{{I Shadow}}
*'''SetSpeed <float>'''
*'''SetSpeed <float>'''
:Set the speed of the train, as a ratio of max speed [0, 1]
:Set the speed of the train, as a ratio of max speed [0, 1]

Revision as of 22:32, 19 January 2009

Template:I targetname

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.
  • Shadow:
DisableShadow
Turn dynamic shadows off for this entity. Identical to applying  EF_NOSHADOW.
EnableShadow
Turn dynamic shadows on for this entity.
DisableReceivingFlashlight  (in all games since Portal 2)
This object will not receive light or shadows from projected textures.
EnableReceivingFlashlight  (in all games since Portal 2)
This object may receive light or shadows from projected textures.
  • SetSpeed <float>
Set the speed of the train, as a ratio of max speed [0, 1]
  • SetSpeedDir <float>
Set the speed of the train, as a ratio of max speed. Negative values reverse the direction [-1, 1]
  • SetSpeedReal <float>
Set the speed of the train. Must be a positive value from 0 to max speed.
  • Stop
Stop the train.
  • StartForward
Start the train moving forward.
  • StartBackward
Start the train moving backward.
  • Resume
Resume the train moving in the current direction after it was stopped via the 'Stop' or 'Toggle' input.
  • Reverse
Reverse the direction of the train.
  • Toggle
Toggle the train between start and stop.