# AIPathDistToNearestKnownEnemyStructure
Flags —
Native
# Arguments
int
— playerpoint
— locbool
— onlyDropoffs
Returns — int
native int AIPathDistToNearestKnownEnemyStructure(
int player,
point loc,
bool onlyDropoffs,
);
# Related
Category: Unclassified
# Examples
# mods/core.sc2mod
// L532
AIPathDistToNearestKnownEnemyStructure(player, leaderPos, true)
# mods/starcoop/starcoop.sc2mod
// L1272
AIPathDistToNearestKnownEnemyStructure(player, UnitGetPosition(aiUnit), true)
# mods/warcoop/warmeleeai.sc2mod
// L622
AIPathDistToNearestKnownEnemyStructure(player, leaderPos, true)