# Set Main Town

Grammar — Set town mainTown|main town to be the main town for player player|player
FlagsNative | Action

Sets the specified town to be the main town for a player.

# Arguments

  • int — Player
  • int — Main Town

Returns — void

native void AISetMainTown(int player, int maintown);

Category: AI Advanced / Towns / Actions

# Examples

# mods/core.sc2mod

BaseAI.galaxy

// L162
AISetMainTown(player, c_townOne)
// L246
AISetMainTown(player, c_townOne)
// L197
AISetMainTown(player, c_townOne)
// L289
AISetMainTown(player, c_townOne)