entityguide‎ > ‎

trigger_track_goal

Allows calling a func_tracktrain to a specific path_track. The func_train and path_corner entities are not supported and will cause the game to crash if used in combination with this anyway. Called train will move into it's 
Keyvalues


"
Target", target :
Name of a func_tracktrain to send towards a path_track.

"
Path Name", path_name :
Name of a path_track entity which the targeted func_tracktrain can reach.

"Sound to play if no path is available", m_iszSoundNoPath :
If there is no another path_track this train can be direct to, this is the sound to play when it happens.

Flags


1: "Stopped only": If set, trigger_track_goal will only allow the train to be called when it is currently not moved.

2: "Don't move if no path available": Prevents the train from moving backward if it can't find another path for func_tracktrain.

Issues

  • Causing the train to move backwards on its path only works in looped tracks.

Changes

  • 5.0 Steam Release: Added 'Path Name' and 'Sound to play if no path is available' keyvalues, 'Don't move if no path available' flag.


Comments