# Enable Harvesting

Grammar — Start a new harvest job at town town|town for player player|player.
FlagsNative | Action

Start a new harvest job at a town for a player.

# Arguments

  • int — Player
  • int — Town

Returns — void

native void AIHarvest(int player, int town);

Category: AI Advanced / Towns / Actions

# Examples

mods/core.sc2modbase.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.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:198

    AIDeclareTown(player, c_townOne, PlayerStartLocation(player));
    AISetMainTown(player, c_townOne);
    AIHarvest(player, c_townOne);
    AISetAllStates(player, 1);