Func traincontrols
From Valve Developer Community
This Brush-based Entity is available in all Source Games.
| Table of contents |
[edit]
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 (http://doxygen.page.needed/class_c_func_train_controls.html), defined in trains.cpp (http://doxygen.page.needed/trains_8cpp-source.html).
[edit]
Keyvalues
- !FGD targetname <target_source>
- Defines the name that other entities refer to this entity by.
- hammerid [Episode Two Update]
- <integer readonly> This id is used for debugging purposes in Hammer.
- parentname <target_destination>
- Specifies the targetname of this entity's Parent in a movement hierarchy. Child entities move with their Parent.
- globalname
- <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 globalnames matching entities in the previous map will have the previous map's state copied over their state.
- target
- <target_destination> The target train to control when the player uses these controls.
[edit]
Flags
None.
[edit]
Inputs
- SetParent <target_destination>
- Changes the entity's parent in the movement hierarchy.
- SetParentAttachment <string>
- Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
- SetParentAttachmentMaintainOffset <string> [Episode One Update]
- Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. The entity will maintain it's position relative to the Parent's Origin and Angles at the time it is attached.
- Removes this entity from its current movement hierarchy.
[edit]
Outputs
None.
