Lua command to place ghost landfill?
Posted: Thu Dec 02, 2021 5:43 pm
Does anybody know the lua command to place ghost landfill?
I found this command to place normal landfill assuming the position is on water and it works:
How about ghost tiles though? For entities such as inserters etc., I use
For tiles, I couldn't find such a functionality. Does anybody know how to do that? Any help or hint is much appreciated!!!
I found this command to place normal landfill assuming the position is on water and it works:
Code: Select all
some_entity.surface.set_tiles({{name = "landfill", position = {-59,70}}}, true)
Code: Select all
some_entity.surface.create_entity{name="entity-ghost", position={-15,51}, inner_name="straight-rail", force=some_entity.force, direction=defines.direction.west}