DoHomebaseProduction

Category: Player
Since engine version: 4.9.8.5 CR

Description

Changes resupply speed of buyable objects at the home base.

Syntax

bool DoHomebaseProduction (int iPlr, id idID, int iChange);

Parameters

iPlr:
Number of the player whose home base resupply list you want to change
idID:
id of the object type you want to adjust
iChange:
Change of the resupply value (positive or negative)

Example

DoHomebaseProduction(0, FLNT, -GetHomebaseProduction(0, FLNT));
No more flintstones are resupplied for the first player.
See also: Buy, DoHomebaseMaterial, GetHomebaseMaterial, GetHomebaseProduction, Sell
Clonk-Karl, März 2008