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.
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.
You can use Creep.suicide
method.
for(var i in Game.creeps) {
Game.creeps[i].suicide(); // lemmings style!
}
set the creep = null
Game.creeps.Harvester1 = null
this deletes it and removes all its energy.