Open Rails

SignalObject.LockForTrain Method

[This is preliminary documentation and subject to change.]

LockForTrain Add a lock for a train and a specific subpath (default 0). This allow the control of this signal by a specific action

public bool LockForTrain(
   int trainNumber,
   int subpath
);

See Also

SignalObject Class | ORTS Namespace