# Declare Town Specific Slot
Grammar — Set the center of player player’s town town|town to be at point center|center
Flags —Native
|Action
Sets the center of a player’s town to be at the specified point.
# Arguments
int
— Playerint
— Townpoint
— Center
Returns — void
native void AIDeclareTown(
int player,
int town,
point center,
);
# 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
// L161
AIDeclareTown(player, c_townOne, PlayerStartLocation(player))
// L245
AIDeclareTown(player, c_townOne, PlayerStartLocation(player))
# mods/core.sc2mod
// L1367
AIDeclareTown(lp_player, AIGetNextUnusedTownSlot(lp_player), lp_center)
# mods/starcoop/starcoop.sc2mod
// L196
AIDeclareTown(player, c_townOne, PlayerStartLocation(player))
// L288
AIDeclareTown(player, c_townOne, PlayerStartLocation(player))