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:
http://www.wowpedia.org/UnitId

These are some of the functions you can use to get information about a unitID:
http://www.wowpedia.org/World_of_Warcraft_API#Unit_Functions

AddOns that alert you when they detect enemy players nearby use the combat log:
http://www.wowpedia.org/API_COMBAT_LOG_EVENT

Join the Conversation

Return to Forum