# AIGetClosestUnit
Flags —
Native
# Arguments
unit
— uunitgroup
— groupbool
— needsPath
Returns — unit
native unit AIGetClosestUnit(
unit u,
unitgroup group,
bool needsPath,
);
# Related
Category: Unclassified
# Examples
# mods/core.sc2mod
// L1198
AIGetClosestUnit(aiUnit, dropOffs, true)
// L1393
AIGetClosestUnit(aiUnit, dropOffs, true)