Category: Player
Since engine version: 1.0 OC
SetBaseMaterial
Description
Sets the availability of buyable objects at the home base.
Syntax
bool SetBaseMaterial(int player, id definition, int cnt);
Parameters
- player:
- Number of the player whose home base material you want to set.
- definition:
- id of the buyable object type you want to adjust.
- cnt:
- Set the available amount (positive).
Example
SetBaseMaterial(0, Firestone, 10);
The first player can now buy ten flints.
See also: Buy, DoBaseMaterial, DoBaseProduction, GetBaseMaterial, GetBaseProduction, Sell, SetBaseProduction