# AIPathDistToNearestKnownEnemyStructure

FlagsNative

# Arguments

  • int — player
  • point — loc
  • bool — onlyDropoffs

Returns — int

native int AIPathDistToNearestKnownEnemyStructure(
	int player,
	point loc,
	bool onlyDropoffs,
);

Category: Unclassified

# Examples

# mods/core.sc2mod

MeleeWaveAI.galaxy

// L532
AIPathDistToNearestKnownEnemyStructure(player, leaderPos, true)

# mods/starcoop/starcoop.sc2mod

TactProtAI.galaxy

// L1272
AIPathDistToNearestKnownEnemyStructure(player, UnitGetPosition(aiUnit), true)

# mods/warcoop/warmeleeai.sc2mod

MeleeWaveAI.galaxy

// L622
AIPathDistToNearestKnownEnemyStructure(player, leaderPos, true)