object - commandobject - platoon


unit FindClosestEnemy(int nUnit)

Scope: private

Parameters
nUnit - unit number

Return values
Found unit or null if not found.

Description
This function searches for the closest enemy unit or building in a range of view.

See also