Code: Select all
/c game.player.surface.create_entity{name="locomotive",position={0,1},force=game.player.force}
/c game.player.surface.create_entity{name="locomotive",position={14,1},force=game.player.force}
I tried this command, but it attaches to both.
Code: Select all
/c game.player.surface.create_entity{name="cargo-wagon",position={7,1},force=game.player.force}