Factorio mod that adds a shortcut key to toggle trains between auto and manual
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

control.lua 240B

123456
  1. script.on_event("toggle-train-control", function(event)
  2. local vehicle = game.players[event.player_index].vehicle
  3. if vehicle and vehicle.train then
  4. vehicle.train.manual_mode = not vehicle.train.manual_mode
  5. end
  6. end)