func_traincontrols
From Valve Developer Community
This is a brush entity available in all Source games.
Contents |
Entity Description
When used by the player, this entity overrides the player's controls to let them drive a train.
In code it is represented by class CFuncTrainControls, defined in trains.cpp.
Keyvalues
- !FGD
Targetname:
- Name <string>
- The targetname other entities refer to this entity by.
Parentname:
- Parent
<targetname> - Specifies the targetname of this entity's movement parent. Entities with parents move with their parent.
Global:
- Global Entity Name
<string> - Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with global names matching entities in the previous map will have the previous map's state copied over to them.
- target
- <target_destination> The target train to control when the player uses these controls.
Flags
None.
Inputs
Parentname:
-
SetParent <targetname> - Move with this entity. See Entity Hierarchy (parenting).
-
SetParentAttachment <string> - Attach to a named attachment on the current parent. The entity will teleport so that the position of its root bone matches that of the attachment.
-
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 its current movement hierarchy.
Outputs
None.
