[Rseding91] [2.0.45] LuaSchedule::set_records() on a schedule belonging to a group sets all trains in group to automatic
Posted: Mon Apr 14, 2025 9:45 pm
Using get_schedule().set_records(...) [or get_schedule().add_record(...)] on a train that is in a group causes all other trains in that group to be set to automatic mode.
Create 2 trains.
Set both trains to same group.
With one train selected run:
Note the other train is now in automatic driving mode.
Create 2 trains.
Set both trains to same group.
With one train selected run:
Code: Select all
/c game.player.selected.train.get_schedule().set_records({{station=""}})