API:TargetNearestFriend

Targets nearest friend in line of sight. TargetNearestFriend(bool previous)

Example
/script TargetNearestFriend;