# Declare Town Specific Slot

Grammar — Set the center of player player’s town town|town to be at point center|center
FlagsNative | Action

Sets the center of a player’s town to be at the specified point.

# Arguments

  • int — Player
  • int — Town
  • point — Center

Returns — void

native void AIDeclareTown(
	int player,
	int town,
	point center,
);

Category: AI Advanced / Towns / Actions

# Examples

# mods/core.sc2mod

BaseAI.galaxy

// L161
AIDeclareTown(player, c_townOne, PlayerStartLocation(player))
// L245
AIDeclareTown(player, c_townOne, PlayerStartLocation(player))

# mods/core.sc2mod

NativeLib.galaxy

// L1367
AIDeclareTown(lp_player, AIGetNextUnusedTownSlot(lp_player), lp_center)

# mods/starcoop/starcoop.sc2mod

BaseAI.galaxy

// L196
AIDeclareTown(player, c_townOne, PlayerStartLocation(player))
// L288
AIDeclareTown(player, c_townOne, PlayerStartLocation(player))