9

Is it possible to delete created creeps? Either through a script or through the GUI?

I could not easily find a way to do this, but it seems like a simple functionality so I imagine it exists, or someone has thought about it or something.

tscizzle
  • 11,191
  • 15
  • 54
  • 88

2 Answers2

5

You can use Creep.suicide method.

for(var i in Game.creeps) {
    Game.creeps[i].suicide(); // lemmings style!
}
artch
  • 4,487
  • 2
  • 28
  • 35
0

set the creep = null

Game.creeps.Harvester1 = null

this deletes it and removes all its energy.

cRichter
  • 1,411
  • 7
  • 7