Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /c
- local surface = game.player.surface
- local position = game.player.position
- local size = 20
- for index, e in pairs(surface.find_entities_filtered{area={{position.x-size, position.y-size},{position.x+size, position.y+size}}}) do
- if not (e.name == 'character') then
- e.destroy()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment