# Get Town Threats

Grammar — Get all the threats near the given town town of player player
FlagsNative | Function

Returns a unit group of all the threats near the given town of a player.

# Arguments

  • int — Player
  • int — Town

Returns — unitgroup

native unitgroup AIGetTownThreats(int player, int town);

Category: AI Advanced / Towns / Functions

# Examples

# mods/warcoop/warmeleeai.sc2mod

MeleeWaveAI.galaxy

// L31
AIGetTownThreats(player,-1)