WoW API: TargetNearestFriend

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk) (Move page script moved page API TargetNearestFriend to API TargetNearestFriend without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < TargetNearestFriend

This function will select the nearest unit friendly towards you (i.e. is green if you would target it). It has nothing to do with whether you have added the unit to your friends list or not.

TargetNearestFriend({backwards})

Parameters

backwards
Boolean : reverses the order of targetting units.