# Combat Diff Flag Low Health

Grammar — Perform action action on the combat diffculty flag for player player - Low Health
FlagsNative | Function

When enabled, allows the combat AI to target low health units before certain other targets.

# Arguments

Returns — bool

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

Category: AI Advanced / Tactical / Functions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L1209
AICombatDiffFlagTieBreakLowHP(PlayerGroupLoopCurrent(), c_combatFlagEnable)
// L1209
AICombatDiffFlagTieBreakLowHP(PlayerGroupLoopCurrent(), c_combatFlagEnable)

# mods/core.sc2mod

BaseAI.galaxy

// L65
AICombatDiffFlagTieBreakLowHP          (player, AIDiffThreshold(player, c_combatFlagDisable, c_skirMedium,   c_combatFlagEnable))
// L77
AICombatDiffFlagTieBreakLowHP          (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable))
// L114
AICombatDiffFlagTieBreakLowHP          (player, AIDiffThreshold(player, c_combatFlagDisable, c_campExpert,   c_combatFlagEnable))