API UnitSelectionColor

Returns the color of the outline and circle underneath the unit.
 red, green ,blue, alpha = UnitSelectionColor(UnitId[, useExtendedColors])
==Arguments==
:;UnitId: - The unit whose selection colour should be returned.
:;useExtendedColors: - If true, a more appropriate colour of the unit's selection will be returned. For instance, if used on a dead hostile target, the default return will red (hostile), but the extended return will be grey (dead).
==Returns==
:;red: - A number between 0 and 1.
:;green: - A number between 0 and 1.
:;blue: - A number between 0 and 1.
:;alpha: - A number between 0 and 1.
==Example==
 0, 0, 0.99999779462814, 0.99999779462814 = UnitSelectionColor("player")
 0, 0.99999779462814, 0, 0.99999779462814 = UnitSelectionColor("target") -- a friendly npc in target
==See Also==
* API UnitSelectionType