# Set Main Town
Grammar — Set town mainTown|main town to be the main town for player player|player
Flags —Native
|Action
Sets the specified town to be the main town for a player.
# Arguments
int
— Playerint
— Main Town
Returns — void
native void AISetMainTown(int player, int maintown);
# Related
Category: AI Advanced / Towns / Actions
- [F] —
void
— Declare Next Town — ( libNtve_gf_DeclareNextTown ) - [F] —
void
— Declare Town Specific Slot — ( AIDeclareTown ) - [F] —
void
— Set Main Town — ( AISetMainTown ) - [F] —
void
— Enable Harvesting — ( AIHarvest ) - [F] —
void
— Set Harvest Rate — ( AIHarvestRate ) - [F] —
void
— Set Gas Peon Count Override — ( AISetGasPeonCountOverride )
# Examples
# mods/core.sc2mod
// L162
AISetMainTown(player, c_townOne)
// L246
AISetMainTown(player, c_townOne)
// L197
AISetMainTown(player, c_townOne)
// L289
AISetMainTown(player, c_townOne)