DoHomebaseMaterial

Category: Player
Since engine version: 4.6.5.0 CP

Description

Changes availability of buyable objects at the home base.

Syntax

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

Parameters

iPlr:
Number of the player whose home base material you want to change
idID:
id of the buyable object type you want to adjust
iChange:
Change of the available amount (positive or negative)

Example

DoHomebaseMaterial(0, FLNT, 1);
The player can now buy one flint more.
See also: Buy, DoHomebaseProduction, GetHomebaseMaterial, GetHomebaseProduction, Sell
Sven2, November 2001