scripted_trainsequence

XashXT

scripted_trainsequence

A faithful recreation of the entity from Spirit of Half-Life. Flexibly controls the movement of a func_train.

Spawnflags

SF_TRAINSEQ_REMOVE 1 (remove when the sequence ends)
SF_TRAINSEQ_DIRECT 2 (move towards the object specified by the m_iszDestination option)
SF_TRAINSEQ_DEBUG 4 (debug mode with console messages)

Options

m_iDirection Train movement direction:
  • 0—no movement
  • 1—forward
  • 2—backward
  • 3—stop the train
  • 4—as specified by m_iszDestination
m_iszEntity Name of the train to control.
m_iszDestination Name of the entity that the train will move towards when the scripted_trainsequence is activated.
m_iszTerminate Target activated when the entity has completed its operation.