Page 1 of 1

realtime metal extraction info

Posted: 16 Nov 2011, 05:23
by zoggop
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.)

Re: realtime metal extraction info

Posted: 16 Nov 2011, 12:56
by Google_Frog
Spring.GetUnitResources or Spring.GetUnitMetalExtraction depending on exactly what you want to do.

Re: realtime metal extraction info

Posted: 16 Nov 2011, 20:59
by zoggop
Google_Frog wrote:Spring.GetUnitResources or Spring.GetUnitMetalExtraction depending on exactly what you want to do.
Ah, thank you.