SetBaseMaterial
Category: Player
Since engine version: 5.1 OC
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.
Maikel, 2014-04