# Tactical AI Filter Life Lost

Grammar — Tactical AI Filter - remove units from filter that have less than min or more than max life lost
FlagsNative | Action

Sets the specified AI Filter to only include units whose life lost is within the specified range. Use this and the other “Tactical AI Filter” actions to set up an AI Filter, which can then be used in a “Tactical AI Filter - Run” function to filter a unit group.

# Arguments

  • aifilter — Filter
  • fixed — Min
  • fixed — Max

Returns — void

native void AISetFilterLifeLost(
	aifilter filter,
	fixed min,
	fixed max,
);

Category: AI Advanced / Filters / Actions

# Examples

# mods/core.sc2mod

TactZergAI.galaxy

// L35
AISetFilterLifeLost(filter, AIEffectFixed(player, c_EF_Transfusion, c_fieldEffectChange0) - 20, c_noMax)

# mods/starcoop/starcoop.sc2mod

TactCampAI.galaxy

// L1656
AISetFilterLifeLost(filter, AIEffectFixed(player, c_EF_Transfusion, c_fieldEffectChange0) - 20, c_noMax)

# mods/starcoop/starcoop.sc2mod

TactZergAI.galaxy

// L33
AISetFilterLifeLost(filter, AIEffectFixed(player, c_EF_Transfusion, c_fieldEffectChange0) - 20, c_noMax)

# mods/warcoop/warclassicsystem.sc2mod

TacticalAIWar3.galaxy

// L361
AISetFilterLifeLost(filter, amount, c_noMax)

# mods/warcoop/warclassicsystem.sc2mod

WarClassicTactical.galaxy

// L569
AISetFilterLifeLost(lv_rangeUnitFilter, lv_heal, libGAwT_gv_c_noMax)