API TargetNearestEnemy

Selects the nearest enemy as the current target.

TargetNearestEnemy([reverse]);


 * Arguments


 * ([reverse])


 * reverse : Boolean - Set to 1 or true to cycle backwards (optional).


 * Returns


 * nil

TargetNearestEnemy; -- Targets nearest enemy.
 * Example


 * Description


 * Selects the nearest enemy as the current target.
 * This is bound to the tab key by default.
 * This function only works if initiated by a hardware event.