This article's documentation is for anything that uses the Source engine. Click here for more information.

Func traincontrols: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
No edit summary
Line 1: Line 1:
{{subpage|[[Trains]]}}
{{subpage|[[Trains]]}}
{{CD|CFuncTrainControls|file1=trains.cpp}}
{{this is a|brush entity|name=func_traincontrols}}
{{this is a|brush entity|name=func_traincontrols}}
{{code class|CFuncTrainControls|trains.cpp}}
When {{ent|+use}}d by the {{ent|player}}, this entity gives control over the movement of a train using the player's movement keys.  
 
== Entity Description ==
When {{ent|+use}}d by the [[player]], this entity gives control over the movement of a train using the player's movement keys.  


== KeyValues ==
== KeyValues ==
{{KV Global}}
{{KV Targetname}}
{{KV BaseEntity|brush=1}}
{{KV|Target|targetname|intn=target|Needs some {{ent|func_tracktrain}} as target{{confirm}}}}
 
== Inputs ==
{{I BaseEntity}}


== Outputs ==
== See Also ==
{{O BaseEntity|l4d=1}}
* {{ent|func_tracktrain}}

Revision as of 13:14, 25 September 2024

C++ Class hierarchy
CFuncTrainControls
CBaseEntity
C++ trains.cpp

func_traincontrols is a brush entity available in all Source Source games. When +used by the player, this entity gives control over the movement of a train using the player's movement keys.

KeyValues

Name (targetname) <string>[ Edit ]
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

Target (target) <targetname>
Needs some func_tracktrain as target[confirm]

See Also