Skip to main content

func_trackautochange

func_trackautochange icon
Brush entity

A func_trackautochange is a piece of track that moves a func_tracktrain from one track to another by itself when the train arrives on it. It has the keys of a func_trackchange.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Move Soundmovesnd

Sets the sound it plays while it moves, and if you set Custom move sound, it ignores this key.

The 14 choices
  • No Sound (0)
  • big elev 1 (1)
  • big elev 2 (2)
  • tech elev 1 (3)
  • tech elev 2 (4)
  • tech elev 3 (5)
  • freight elev 1 (6)
  • freight elev 2 (7)
  • heavy elev (8)
  • rack elev (9)
  • rail elev (10)
  • squeek elev (11)
  • odd elev 1 (12)
  • odd elev 2 (13)
Default No Sound (0)
Stop Soundstopsnd

Sets the sound it plays when it stops, and if you set Custom stop sound, it ignores this key.

The 9 choices
  • No Sound (0)
  • big elev stop1 (1)
  • big elev stop2 (2)
  • freight elev stop (3)
  • heavy elev stop (4)
  • rack stop (5)
  • rail stop (6)
  • squeek stop (7)
  • quick stop (8)
Default No Sound (0)
Sound Volumevolume

Sets how loud the move and stop sounds are, from 0.0 for silent up to 1.0 for full volume.

If you leave this key empty or set 0, it is 0.85.

Default 0.85
Fire On StartFeaturefulfireonstart

Fires when it starts moving, in either direction.

Fire On Start use typeFeaturefulfireonstart_triggerstate

Sets the use type that the Fire On Start targets get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On StopFeaturefulfireonstop

Fires when it stops, at either end.

Fire On Stop use typeFeaturefulfireonstop_triggerstate

Sets the use type that the Fire On Stop targets get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Sound radiusFeaturefulsoundradius

Sets how far away players hear its move and stop sounds.

  • Small (-2) - Up to about 500 units away
  • Medium (-1) - Up to about 800 units away
  • Default (large) (0) - Up to about 1250 units away
  • Huge (1) - Up to about 2000 units away
  • Enormous (2) - Up to about 4000 units away
  • Play Everywhere (3) - Anywhere on the map, at full volume
Default Default (large) (0)
Custom move soundFeaturefulcustommovesnd

Sets a sound file that plays while it moves, instead of Move Sound.

Custom stop soundFeaturefulcustomstopsnd

Sets a sound file that plays when it stops, instead of Stop Sound.

Travel altitudeheight

Sets how far it travels down from its top position, in units, and with Rotate Only, it doesn't move.

If you leave this key empty or set 0, it is its own height minus 8.

Default 0
Spin amountrotation

Sets how far it turns on its way between top and bottom, in degrees, around the vertical axis or the axis its flags set. 0 means it doesn't turn.

Default 0
Train to switchtrain

Names the func_tracktrain it switches, and a train standing on it moves with it.

Top tracktoptrack

Names a path_track of the track at the top position. The point of that track nearest to the track change is only open to the train while the track change is at the top.

Bottom trackbottomtrack

Names a path_track of the track at the bottom position. The point of that track nearest to the track change is only open to the train while the track change is at the bottom.

Move/Rotate speedspeed

Sets how fast it moves, in units per second, or with Rotate Only, how fast it turns, in degrees per second.

If you leave this key empty or set 0, it is 150.

Default 0
Fire On Open Startfireonopening

Fires when it starts moving to its top position, the Top track.

Fire On Open Start use typefireonopening_triggerstate

Sets the use type that the Fire On Open Start targets get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On Close Startfireonclosing

Fires when it starts moving to its bottom position, the Bottom track. It starts at the top, so its first trigger does this.

Fire On Close Start use typefireonclosing_triggerstate

Sets the use type that the Fire On Close Start targets get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On Open Endfireonopened

Fires when it reaches its top position.

Fire On Open End use typefireonopened_triggerstate

Sets the use type that the Fire On Open End targets get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)
Fire On Close Endfireonclosed

Fires when it reaches its bottom position.

Fire On Close End use typefireonclosed_triggerstate

Sets the use type that the Fire On Close End targets get.

  • Off (0)
  • On (1)
  • Toggle (2)
Default Off (0)

Flags​

8Start at Bottom

It starts at its bottom position instead of the top

16Rotate Only

It only turns in place and doesn't move up or down

64X Axis

It turns around the X axis instead of the vertical axis

128Y Axis

It turns around the Y axis instead of the vertical axis

See also​

Changes since 1.38​

  • You can use the new Fire On keys and their use types, Sound radius and the custom move and stop sounds
  • A track change doesn't crash the server when a trigger without an activator uses it, or after its train is removed. In SBO 1.38, as in Half-Life, both crashed the server