# AISetFilterCanAttackEnemy
Flags —
Native
# Arguments
aifilter
— filterint
— enemyGroundCountint
— enemyAirCount
Returns — void
native void AISetFilterCanAttackEnemy(
aifilter filter,
int enemyGroundCount,
int enemyAirCount,
);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:494
AISetFilterLife(filter, c_neuralParasiteMinVitality, c_noMax);
AISetFilterMarker(filter, c_noMarkersMin, c_noMarkersMax, mark);
AISetFilterCanAttackEnemy(filter, enemyGroundCount, enemyAirCount);
targetGroup = AIGetFilterGroup(filter, scanGroup);
if (targetGroup == null) {
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:705
AISetFilterLife(filter, c_neuralParasiteMinVitality, c_noMax);
AISetFilterMarker(filter, c_noMarkersMin, c_noMarkersMax, mark);
AISetFilterCanAttackEnemy(filter, enemyGroundCount, enemyAirCount);
targetGroup = AIGetFilterGroup(filter, scanGroup);
if (targetGroup == null) {