# AIGetClosestUnit

FlagsNative

# Arguments

  • unit — u
  • unitgroup — group
  • bool — needsPath

Returns — unit

native unit AIGetClosestUnit(
	unit u,
	unitgroup group,
	bool needsPath,
);

Category: Unclassified

# Examples

# mods/core.sc2mod

TactZergAI.galaxy

// L1198
AIGetClosestUnit(aiUnit, dropOffs, true)
// L1393
AIGetClosestUnit(aiUnit, dropOffs, true)