realtime metal extraction info
Moderator: Moderators
realtime metal extraction info
Is there a unit property of how much metal the unit is extracting? There is the unitDef "metalMake", but that only applies to metal makers and the commander. There is also the unitDef "extractsMetal", but that only tells me the fraction of the metal it extracts from a given spot. I'm making a widget that quantitatively assesses the economic importance of structures in a grid. (Eventually this function will be part of an AI.)
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: realtime metal extraction info
Spring.GetUnitResources or Spring.GetUnitMetalExtraction depending on exactly what you want to do.
Re: realtime metal extraction info
Ah, thank you.Google_Frog wrote:Spring.GetUnitResources or Spring.GetUnitMetalExtraction depending on exactly what you want to do.