Why can not I delete the worms?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

Why can not I delete the worms?

Post by WIZ4 »

I tried to remove the worm by using this command:

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
But he is not retired and have not written any error
Sorry for my google translate
My native language is russian. Sorry if my messages are difficult to read.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Why can not I delete the worms?

Post by prg »

The name needs to be "small-worm-turret".
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
User avatar
WIZ4
Fast Inserter
Fast Inserter
Posts: 209
Joined: Thu Apr 07, 2016 1:36 pm
Contact:

Re: Why can not I delete the worms?

Post by WIZ4 »

prg wrote:The name needs to be "small-worm-turret".
Thank you!
My native language is russian. Sorry if my messages are difficult to read.
Post Reply

Return to “Gameplay Help”