Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

screeps clear memory of dead screeps

for(var i in Memory.creeps) {
    if(!Game.creeps[i]) {
        delete Memory.creeps[i];
    }
}
Source by screeps.com #
 
PREVIOUS NEXT
Tagged: #screeps #clear #memory #dead #screeps
ADD COMMENT
Topic
Name
5+2 =