Why can not I delete the worms?
Posted: Thu Jul 28, 2016 5:40 pm
I tried to remove the worm by using this command:
But he is not retired and have not written any error
Sorry for my google translate
Code: Select all
/c for key, entity in pairs(game.player.surface.find_entities_filtered{ area={{game.player.position.x-15, game.player.position.y-15}, {game.player.position.x+15, game.player.position.y+15}}, name="small-worm"}) do entity.destroy() end
Sorry for my google translate