Get all enemys in my range

UI and Macro
How can I get all enemies that are in my range? I'm making an addon and need this function :/
What do you mean get all enemies? Like target them?
We have very limited information about any unit without a unitID, and we don't have unitIDs for arbitrary nearby enemies.

These are the valid unitIDs:

These are some of the functions you can use to get information about a unitID:

AddOns that alert you when they detect enemy players nearby use the combat log:

Join the Conversation

Return to Forum