진행중인 맵에서 존재하는 나무랑 물 바위를 일정범위 내에서 삭제하고 싶어요
Remove resources around the playerRemoves all resource patches from the ground in a 50 x 50 area around the player.
/c local surface=game.player.surface
local size=50
local pos=game.player.position
for _, e in pairs(surface.find_entities_filtered{area={{pos.x-size, pos.y-size},{pos.x+size, pos.y+size}}, type="resource"})
do e.destroy()
end
팩위키에는 일케 되어있는데 로컬사이즈 50 저 숫자가 1당 1청크고
resource 저기에 tree , water , rock 하나씩 3번 쓰면 되는거 맞나요?
한번 해봐. 근데 나무랑 바위는 surface가 아니라 entity 취급이라 될지 모르겠네 - dc App
나무 바위는 리소스로 안들어갈텐데
물도 안들어가고
어차피 치트쓸거면 그냥 /editor쳐서 거기서 지ㄴ워