# AIGetNumTeams
Flags —
Native
Returns — int
native int AIGetNumTeams();
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeBuildAI.galaxy:333
if (!AIHasNearbyOpenExpansion(player)) {
// no nearby expansion, avoid macro & power builds
if (AIGetNumTeams() > 2) {
// FFA game, also avoid rushing
rushChance = 0;
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeBuildAI.galaxy:346
//macroChance = 0;
}
} else if (AIGetNumTeams() > 2) {
// don't rush in FFA games, prefer power/macro builds
// AU, VE, E, M, MH, H, HV, VH, CV, CR, CI