DoBaseMaterial

Category: Player
Since engine version: 1.0 OC

Description

Changes availability of buyable objects at the home base.

Syntax

bool DoBaseMaterial(int player, id definition, int change);

Parameters

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

Example

DoBaseMaterial(0, Firestone, 1);
The player can now buy one flint more.
See also: Buy, DoBaseProduction, GetBaseMaterial, GetBaseProduction, Sell, SetBaseMaterial, SetBaseProduction
Maikel, 2014-04