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

func_trackchange

From Valve Developer Community
Jump to: navigation, search
Class hierarchy
CFuncTrackChange
CFuncPlatRot
CFuncPlat
CBasePlatTrain
CBaseToggle
CBaseEntity
trains.cpp

func_trackchange is a brush entity available in all Source Source games. It works as a rotating/moving platform that will carry a func_tracktrain to a new track. It must be larger in X-Y planar area than the train, since it must contain the train within these dimensions in order to operate when the train is near it.

Note.pngNote:As opposed to func_trackautochange, this entity does not have a Trigger input.

KeyValues

Note.pngNote:For Keyvalues and Inputs affecting brush rendering, see Brush entity/Rendering related keyvalues and inputs


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

Travel Altitude (height) <integer>
The vertical height above the track that the train moves. Negative values move the train below the track.
Spin amount (rotation) <integer>
The amount this platform should rotate as it moves, in degrees.
Train to Switch (train) <targetname>
Name of the func_tracktrain this platform will transport to the top/bottom track.
Top Track (toptrack) <targetname>
Name of last path_track of the top path. If the Start at Bottom flag is selected, this is the name of the first path_track at the top path.
Bottom Track (bottomtrack) <targetname>
Name of first path_track of the top path. If the Start at Bottom flag is selected, this is the name of the last path_track at the bottom path.
Move/Rotate Speed (speed) <integer>
Speed at which the entity travels the whole way up/down (units per second).
Move Sound (movesnd) <choices>
The sound played whenever the platform starts moving.
Choices
  • 0: No Sound
  • 1: big elev 1
  • 2: big elev 2
  • 3: tech elev 1
  • 4: tech elev 2
  • 5: tech elev 3
  • 6: freight elev 1
  • 7: freight elev 2
  • 8: heavy elev
  • 9: rack elev
  • 10: rail elev
  • 11: squeek elev
  • 12: odd elev 1
  • 13: odd elev 2
Stop Sound (stopsnd) <choices>
The sound played when the platform stops moving.
Choices
  • 0: No Sound
  • 1: big elev stop1
  • 2: big elev stop2
  • 3: freight elev stop
  • 4: heavy elev stop
  • 5: rack stop
  • 6: rail stop
  • 7: squeek stop
  • 8: quick stop
Sound Volume 0.0 - 1.0 (volume) <string>
Sound volume

Flags

Auto Activate train : [1]
Relink track : [2]
Start at Bottom : [8]

Platform starts at the bottom track instead of the top one.

Rotate Only : [16]
X Axis : [64]

Train rotates around the X-axis instead of the Z-axis. Can be combined with Y Axis.

Y Axis : [128]

Train rotates around the Y-axis instead of the Z-axis. Can be combined with X Axis.

See also