# AISetMaxBestAttackersLimit
Flags —
Native
# Arguments
int
— playerint
— limit
Returns — void
native void AISetMaxBestAttackersLimit(
int player,
int limit,
);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:188
attackersLimit = 1 << diff;
AISetMaxBestAttackersLimit(player, attackersLimit);
AITransportIgnore(player, "VikingAssault");
mods/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:295
AISetDifficulty(player, c_diffSplitAttacking, false);
AISetMaxBestAttackersLimit(player, AICampaignDiffSelect(player, 1, 2, 4, 6));
AITransportIgnore(player, "InfestedCivilian");
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:223
attackersLimit = 1 << diff;
AISetMaxBestAttackersLimit(player, attackersLimit);
AITransportIgnore(player, "VikingAssault");
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:342
//Using the Melee version for more granularity
attackersLimit = 1 << diff;
AISetMaxBestAttackersLimit(player, attackersLimit);
AITransportIgnore(player, "InfestedCivilian");