# Set Harvest Rate
Grammar — Set the harvest rate to amount for player player.
Flags —Native
|Action
Set the harvest rate for a player.
# Arguments
int
— Playerint
— Amount
Returns — void
native void AIHarvestRate(int player, int rate);
# Related
Category: AI Advanced / Towns / Actions
- Declare Next Town —
void
— libNtve_gf_DeclareNextTown - Declare Town Specific Slot —
void
— AIDeclareTown - Set Main Town —
void
— AISetMainTown - Enable Harvesting —
void
— AIHarvest - Set Harvest Rate —
void
— AIHarvestRate - Set Gas Peon Count Override —
void
— AISetGasPeonCountOverride
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:250
AIInitCampaignHarvest(player);
AIHarvestRate(player, 1);
AISetNumScouts(player, 0);
AISetBullyAttackWavePercent(AICampaignDiffSelect(player, 100, 100, 50, 0), player);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:293
AIInitCampaignHarvest(player);
AIHarvestRate(player, 1);
AISetNumScouts(player, 0);
//AISetBullyAttackWavePercent(AICampaignDiffSelect(player, 100, 100, 50, 0, 0, 0), player);