WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Kirov at 9/25/2005 12:08:30 AM PDT
Subject: UnitExists() true but UnitName() nil?
   There are a number of mods that do a UnitExists() check on a unit before doing a UnitName() check. Since 1.7, it appears that it's possible for UnitExists to return true, but UnitName() to return nil. I don't think this was ever the case for 1.6, it would at least return "Unknown Entity", not nil.

Anyone else seen this?
- Kirov
http://www.wowwiki.com/ use it
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=227342&p=#post227342
 
Poster: slouken at 9/26/2005 11:30:15 AM PDT
Subject: Re: UnitExists() true but UnitName() nil?
   This is a perfectly legal situation.
In this case:
1. UnitExists() returns true (because the unit is in the raid group)
2. UnitIsVisible() returns false (because the unit is not in the area of interest)
3. UnitName() returns nil (because we don't have information from the server yet)

You will get a name update when the name information arrives from the server.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=227342&p=#post228223
Poster: slouken at 9/26/2005 11:35:50 AM PDT
Subject: Re: UnitExists() true but UnitName() nil?
   In 1.8, UnitName() will not return nil in this case. :)
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=227342&p=#post228232
Poster: slouken at 9/26/2005 11:36:31 AM PDT
Subject: Re: UnitExists() true but UnitName() nil?
  

Q u o t e:
Is it true that:

(UnitExists(x) and UnitIsVisible(x)) implies UnitName(x) ~= nil.



Yes.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=227342&p=#post228233

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?