# Init Campaign Towns

Grammar — Initialize campaign towns for player player
FlagsNative | Action

Initializes the towns for an AI player. This happens automatically when you call one of the Start Campaign AI actions.

# Arguments

  • int — Player

Returns — void

native void AIInitCampaignTowns(int player);

Category: AI / MiscCampaign / Actions

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:247

    AIDeclareTown(player, c_townOne, PlayerStartLocation(player));
    AISetMainTown(player, c_townOne);
    AIInitCampaignTowns(player);
    
    AIInitCampaignHarvest(player);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:290

	AIDeclareTown(player, c_townOne, PlayerStartLocation(player));
    AISetMainTown(player, c_townOne);
    AIInitCampaignTowns(player);
    
    AIInitCampaignHarvest(player);