func_traincontrols

From Source Entities
Jump to navigation Jump to search

Code classes:

Trigger.png

func_traincontrols is a brush entity present in all Source games. It's an optional brush entity that defines the area in which a player can control a func_tracktrain via +use, +forward, and +back. If this entity is not placed, the train will be controllable as long as the player is physically on it. User controlling functionality not present in Tf2.pngL4d.pngL4d2-small.pngAsw.pngP2.png.

Bug: Uses a dumb detection method. The controlling player's origin must be inside the entity's bounding box.

Keyvalues[edit | edit source]

Train Name (target) <target_destination>
The train this entity is linked to. Note: The entity also needs be parented to that train.