Factorio mod that adds a shortcut key to toggle trains between auto and manual
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456 |
- script.on_event("toggle-train-control", function(event)
- local vehicle = game.players[event.player_index].vehicle
- if vehicle and vehicle.train then
- vehicle.train.manual_mode = not vehicle.train.manual_mode
- end
- end)
|