What:
Extend entity.rotate() for carriages to rotate the carriage and swap the connection points without disconnecting it from a train.Why:
Currently to rotate a locomotive you have to disconnect, rotate and reconnect and prey it's not in some weird position or right next to another train so it connects properly.Code: Select all
loco.disconnect_rolling_stock(defines.rail_direction.back)
loco.disconnect_rolling_stock(defines.rail_direction.front)
loco.rotate()
loco.connect_rolling_stock(defines.rail_direction.back)
loco.connect_rolling_stock(defines.rail_direction.front)