How to take energy out of a link
-
How do I do it? I want to use it to make my towers powered more efficiently but I don't know how to make my creeps pull energy from a link.
-
you withdraw it bro
-
@letscreep but how
-
const link = Game.getObjectById("..."); const creep = Game.creeps.mycreep; if(creep.withdraw(link, RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) { creep.moveTo(link); }