# AIHasNearbyAlliedDetector
Flags —
Native
# Arguments
int
— playerpoint
— locfixed
— staticRangefixed
— mobileRange
Returns — bool
native bool AIHasNearbyAlliedDetector(
int player,
point loc,
fixed staticRange,
fixed mobileRange,
);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1255
}
// must not already have a nearby detector
if (AIHasNearbyAlliedDetector(player, UnitGetPosition(aiUnit), 8.0, 16.0)) {
return null;
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1311
}
// must not already have a nearby detector
if (AIHasNearbyAlliedDetector(player, UnitGetPosition(aiUnit), 8.0, 16.0)) {
return null;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1214
}
// must not already have a nearby detector
if (AIHasNearbyAlliedDetector(player, UnitGetPosition(aiUnit), 8.0, 16.0)) {
return null;
}