WoW:API TargetNearestEnemy: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m ({{wowapi}}) |
||
| Line 1: | Line 1: | ||
{{wowapi}} | |||
Selects the nearest enemy as the current target. | Selects the nearest enemy as the current target. | ||
| Line 29: | Line 28: | ||
: This appears to be equivalent to pressing TAB, as it only cycles through enemies that you are facing, even if there are enemies behind you that are closer. | : This appears to be equivalent to pressing TAB, as it only cycles through enemies that you are facing, even if there are enemies behind you that are closer. | ||
:This function does only work if initiated by a hardware event. | :This function does only work if initiated by a hardware event. | ||
Revision as of 09:45, 18 June 2006
← WoW 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
- Example
TargetNearestEnemy();
- Result
- Description
- Selects the nearest enemy as the current target.
- This appears to be equivalent to pressing TAB, as it only cycles through enemies that you are facing, even if there are enemies behind you that are closer.
- This function does only work if initiated by a hardware event.