玩家送到到-10,10
/c game.player.teleport{-10, 10}
--雷达布局,以玩家位置为中心,打下布梅花雷达阵的地基(四个万字型传送带)
/c
x2=game.player.position.x
y2=game.player.position.y
for _,entity in pairs(
game.player.surface.find_entities_filtered{area = {{x2-3, y2-3}, {x2+3, y2+3}}, name= "transport-belt"}
)
do
game.player.surface.create_entity({name=entity.name,direction=entity.direction,position={entity.position.x+480, entity.position.y+480}})
game.player.surface.create_entity({name=entity.name,direction=entity.direction,position={entity.position.x+480, entity.position.y-480}})
game.player.surface.create_entity({name=entity.name,direction=entity.direction,position={entity.position.x-480, entity.position.y-480}})
game.player.surface.create_entity({name=entity.name,direction=entity.direction,position={entity.position.x-480, entity.position.y+480}})
end
图为梅花雷达阵示意