# Combat Diff Flag Special High Priority

Grammar — Perform action action on the combat diffculty flag for player player - Special High Priority
FlagsNative | Function

When enabled, allows the combat AI to target squishy high damage casters before certain other targets.

# Arguments

Returns — bool

native bool AICombatDiffFlagCatSpecialHighPrio(
	int player,
	int action,
);

Category: AI Advanced / Tactical / Functions

# Examples

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

    // I could condense these flags but speed doesn't matter and this way makes it easier to see & to change the settings
    if (isMelee) {
        AICombatDiffFlagCatSpecialHighPrio     (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));
        AICombatDiffFlagCatSplashHighPrio      (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));
        AICombatDiffFlagCatTimedLowPrio        (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable));

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

    }
    else {
        AICombatDiffFlagCatSpecialHighPrio     (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
        AICombatDiffFlagCatSplashHighPrio      (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
        AICombatDiffFlagCatTimedLowPrio        (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));

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


    // I could condense these flags but speed doesn't matter and this way makes it easier to see & to change the settings
	AICombatDiffFlagCatSpecialHighPrio     (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
	AICombatDiffFlagCatSplashHighPrio      (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable));
	AICombatDiffFlagCatTimedLowPrio        (player, AIDiffThreshold(player, c_combatFlagDisable, c_campVirtuoso,   c_combatFlagEnable));