WoW:API TargetNearestFriend: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (added function definition and description)
 
m (Move page script moved page API TargetNearestFriend to API TargetNearestFriend without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{wowapi}}
{{protectedapi|2.0.1|}}
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.
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 ==
== Parameters ==
 
:; backwards : Boolean : reverses the order of targetting units.
=== Function ===
:;TargetNearestFriend(): Selects the nearest friendly unit as the current target.
 
=== Returns ===
<tt>nil</tt>.
 
 
----
{{template:WoW API}}

Latest revision as of 04:47, 15 August 2023

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[edit]

backwards
Boolean : reverses the order of targetting units.