How do I iterate through energy droppings?



  • I have two miners going into a room I do not control and the have no CARRY, they just mine and drop energy.

    I have two haulers that I want to go into those rooms and pick up those droppings from those two miners. However, I can only find by Closest range and therefore they only pickup from the same miner. When the droppings from the closest miner is all picked up ... they start to head to the other miner .. but one tick later the closest miner places more droppings and they head back to the original closest.

    Now we can iterate through the Sources by find.(FIND_SOURCES), and then there is a source[0] and source[1], however...

    ... when I try to find.(FIND_DROPPED_ENERGY) ... i get an error and it will let me iterate through the dropped energy like energy[0] and energy[1].

    Any help would be appreciated, thank you.



  • Nevermind, I figured it out what I was doing wrong. We should be able to delete these postings.