Page 1 of 1

Why can not I delete the worms?

Posted: Thu Jul 28, 2016 5:40 pm
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

Re: Why can not I delete the worms?

Posted: Thu Jul 28, 2016 5:58 pm
by prg
The name needs to be "small-worm-turret".

Re: Why can not I delete the worms?

Posted: Thu Jul 28, 2016 6:07 pm
by WIZ4
prg wrote:The name needs to be "small-worm-turret".
Thank you!