Event for trains manual coupling /consist changes
Posted: Tue Apr 18, 2017 3:00 am
Keeping track of trains is hard work. An event that is triggered when a trains consist changes would be a big help.
events.on_train_consist_changed -- Fires whenever a trains consist is changed
event.trains -- Array of new trains (for adding it would have just the "new" train, for removing it would contain both new trains)
event.player_index -- The player who changed the trains
Would fire for manual coupling/decoupling as well as after building a locomotive/cargo-wagon
Even if it just fired for manual coupling/decoupling would be a great benifit.
Thanks!
events.on_train_consist_changed -- Fires whenever a trains consist is changed
event.trains -- Array of new trains (for adding it would have just the "new" train, for removing it would contain both new trains)
event.player_index -- The player who changed the trains
Would fire for manual coupling/decoupling as well as after building a locomotive/cargo-wagon
Even if it just fired for manual coupling/decoupling would be a great benifit.
Thanks!