Code: Select all
/c for _, ent in pairs(game.player.surface.find_entities_filtered{type="rail-remnants"}) do game.print(ent.direction) end
Code: Select all
/c for _, ent in pairs(game.player.surface.find_entities_filtered{type="rail-remnants"}) do game.print(ent.direction) end