Code: Select all
player.set_controller({
type = defines.controllers.remote,
position = tank1.position,
surface = tank1.surface,
})
tank1.set_driver(player)
player.set_controller({
type = defines.controllers.remote,
position = tank2.position,
surface = tank2.surface,
})
tank2.set_driver(player)
player.set_controller({
type = defines.controllers.remote,
position = tank1.position,
surface = tank1.surface,
})