I am looking to create an addon or a macro, that will target the lowest health enemy within range, and then bind it to tab.
I am planning on using the following API call: UnitHealth(unit)
Now what I am missing, and what I am asking is if I can create an array of the players within range, check their health, and return the player with the lowest health.
Any suggestion/ideas/help?
I am planning on using the following API call: UnitHealth(unit)
Now what I am missing, and what I am asking is if I can create an array of the players within range, check their health, and return the player with the lowest health.
Any suggestion/ideas/help?