SHARE
TWEET

Untitled

a guest Apr 10th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  harvest(creep){
  2.         let source = Game.getObjectById(creep.memory.target)
  3.         if(creep.harvest(source) === ERR_NOT_IN_RANGE){
  4.             let result = creep.moveTo(source,{visualizePathStyle: {stroke: '#ffaa00'}})
  5.             //console.log(result)
  6.         }else{
  7.             creep.say("Mining")
  8.         }
  9.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top