DoHomebaseMaterial
Category:
Player
Since engine version:
5.1 OC
Description
Changes availability of buyable objects at the home base.
Syntax
bool
DoHomebaseMaterial(
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
DoHomebaseMaterial(0, Firestone, 1);
The player can now buy one flint more.
See also:
Buy
,
DoHomebaseProduction
,
GetHomebaseMaterial
,
GetHomebaseProduction
,
Sell
Sven2, 2001-11