# AIPathDistToNearestFriendlyStructure
Flags —
Native
# Arguments
int
— playerpoint
— locbool
— onlyDropoffs
Returns — int
native int AIPathDistToNearestFriendlyStructure(
int player,
point loc,
bool onlyDropoffs,
);
# Related
Category: Unclassified
# Examples
# mods/core.sc2mod
// L533
AIPathDistToNearestFriendlyStructure(player, leaderPos, true)
// L623
AIPathDistToNearestFriendlyStructure(player, leaderPos, true)