What I found is that a LuaItemStack can create and build blueprints like this:
Code: Select all
stack.create_blueprint{surface = entity.surface,
force = entity.force,
area = {left_top = {x - 0.1, y - 0.1}, right_bottom = {x + 0.1, y + 0.1}},
always_include_tiles = true}
stack.build_blueprint{surface = slave.surface,
force = slave.force,
position = {x = sy, y = sy},
direction = defines.direction.north,
skip_fog_of_war = false,
by_player = event.player_index}
Any other method to clone an entity as ghost?