Func traincontrols: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
|  (Info about use) | m (more detail, this entity annoyed me with its finicky nature) | ||
| Line 3: | Line 3: | ||
| {{this is a|brush entity|name=func_traincontrols}} | {{this is a|brush entity|name=func_traincontrols}} | ||
| When the {{ent|player}} presses {{ent|+use}} on it, this entity gives control over the movement of a train using the player's movement keys. | When the {{ent|player}} presses {{ent|+use}} on it, this entity gives control over the movement of a train using the player's movement keys. | ||
| :{{Note| | :{{Note|Player needs to be standing on the func_traincontrols brush in order to take control of it. Model collision can interfere with this.}} | ||
| :{{Note|When used with a [[func_tracktrain]] the brush entities have to be touching one another, however on a [[func_tanktrain]] they do not.}} | :{{Note|When used with a [[func_tracktrain]] the brush entities have to be touching one another, however on a [[func_tanktrain]] they do not.}} | ||
Revision as of 22:13, 11 December 2024
|  Class hierarchy | 
|---|
| CFuncTrainControls | 
|  trains.cpp | 
func_traincontrols  is a   brush entity  available in all  Source games.
When the player presses +use on it, this entity gives control over the movement of a train using the player's movement keys.
 Source games.
When the player presses +use on it, this entity gives control over the movement of a train using the player's movement keys.
 Note:Player needs to be standing on the func_traincontrols brush in order to take control of it. Model collision can interfere with this. Note:Player needs to be standing on the func_traincontrols brush in order to take control of it. Model collision can interfere with this.
 Note:When used with a func_tracktrain the brush entities have to be touching one another, however on a func_tanktrain they do not. Note:When used with a func_tracktrain the brush entities have to be touching one another, however on a func_tanktrain they do not.
KeyValues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentnameortarget).
 Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Train Name (target) <targetname>
- The target func_tracktrain to control when the player uses these controls
