Hi, Im trying to get resources from my spawn with this script:
var spawn = Game.getObjectById('1142bfa3ca07ddd');
if(creep.harvest(spawn) == ERR_NOT_IN_RANGE) {
creep.moveTo(spawn, {visualizePathStyle: {stroke: '#FFAA00'}});
}
my screep just stands still
what did i miss ?