# GetHomebaseProduction

Player
5.1 OC
int
int player Number of the player whose buying options you want to determine. The first player has the player number 0.
id id If specified, the function returns the number of objects of the given type which are resupplied to the player's home base. In this case index and category are ignored.
int index List index of the buyable item to check.
int category Category of buyable items you want to check.
With id specified, the function returns how quickly objects of that type are resupplied to the player's home base. In this case index and category are ignored. If id is not specified, the function returns the id of the indicated type of objects of the specified category in the player's resupply list. This will return all object types from the resupply list, even if they are currently not being resupplied.
if(!GetHomebaseProduction(0, Firestone)) GetCursor(0)->CreateContents(Firestone);
Gives a flintstone to the selected clonk of the first player if currently no flintstones are resupplied to the player's home base.
GetHomebaseMaterial
DoHomebaseMaterial
DoHomebaseProduction
C4D_All
C4D_Goal
C4D_Living
C4D_Object
C4D_Rule
C4D_StaticBack
C4D_Structure
C4D_Vehicle
Clonk-Karl
2008-03