WoW:API UnitName: Difference between revisions

→‎Returns: Clarified return values.
No edit summary
(→‎Returns: Clarified return values.)
Line 18: Line 18:
=== Returns ===
=== Returns ===
<!-- List each return value, together with its type -->
<!-- List each return value, together with its type -->
:;name : String - The name of the specified unit.
:;name : String - The name of the specified unit, or nil if not applicable (e.g., if the specified unit is "target" but the player has no target selected).
:;realm : String - The realm the specified unit is from. If from your own realm, then realm == nil (but the 2nd return value is still there). This is as of 1.12
:;realm : String - The realm the specified unit is from. If from your own realm, then realm == nil (but the 2nd return value is still there). This is as of 1.12


Anonymous user