# Enable Harvesting
Grammar — Start a new harvest job at town town|town for player player|player.
Flags —Native
|Action
Start a new harvest job at a town for a player.
# Arguments
int
— Playerint
— Town
Returns — void
native void AIHarvest(int player, int town);
# 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:163
AIDeclareTown(player, c_townOne, PlayerStartLocation(player));
AISetMainTown(player, c_townOne);
AIHarvest(player, c_townOne);
AISetAllStates(player, 1);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:198
AIDeclareTown(player, c_townOne, PlayerStartLocation(player));
AISetMainTown(player, c_townOne);
AIHarvest(player, c_townOne);
AISetAllStates(player, 1);