# AISetMaxBestAttackersLimit

FlagsNative

# Arguments

  • int — player
  • int — limit

Returns — void

native void AISetMaxBestAttackersLimit(
	int player,
	int limit,
);

Category: Unclassified

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:188


    attackersLimit = 1 << diff;
    AISetMaxBestAttackersLimit(player, attackersLimit);

    AITransportIgnore(player, "VikingAssault");

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:295

    AISetDifficulty(player, c_diffSplitAttacking,       false);

    AISetMaxBestAttackersLimit(player, AICampaignDiffSelect(player, 1, 2, 4, 6));

    AITransportIgnore(player, "InfestedCivilian");

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:223


    attackersLimit = 1 << diff;
    AISetMaxBestAttackersLimit(player, attackersLimit);

    AITransportIgnore(player, "VikingAssault");

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:342

    //Using the Melee version for more granularity
	attackersLimit = 1 << diff;
    AISetMaxBestAttackersLimit(player, attackersLimit);

    AITransportIgnore(player, "InfestedCivilian");