# Get Next Unused Town Slot

Grammar — Get the index of the next unused town slot for player player
FlagsNative | Function

Returns the index of the next unused town slot for a player.

# Arguments

  • int — Player

Returns — int

native int AIGetNextUnusedTownSlot(int player);

Category: AI Advanced / Towns / Functions

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// L1367
AIGetNextUnusedTownSlot(lp_player)