Is there a way to check if a miner is depleted?

Place to get help with not working mods / modding interface.
Nicksaurus
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Thu Aug 28, 2014 12:56 pm
Contact:

Is there a way to check if a miner is depleted?

Post by Nicksaurus »

I'm trying to make it so that my miners will automatically get marked for deconstruction when they run out of resources but I can't find a way to actually check if they're depleted (without searching their mining areas for minable resources, which is more effort than I'm prepared to put into this).

Has anyone managed this? I've also noticed depleted miners get marked with red dots when the debug view 'show_active_state' is enabled. So if it's possible just to get that information in the API that could work as a solution too.
Nicksaurus
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Thu Aug 28, 2014 12:56 pm
Contact:

Re: Is there a way to check if a miner is depleted?

Post by Nicksaurus »

Perfect, thanks
Post Reply

Return to “Modding help”