View Single Post
12-02-12, 01:21 PM   #19
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by semlar View Post
Here'a a "quick" and dirty method for getting the faction from a unit's GUID using its tooltip:
Looks promising, though if you're going to make the ScanFaction function a global, I'd suggest giving a less generic name, like GetPlayerFactionFromGUID or something. Also not sure about speed of waiting for the server to send a tooltip vs. waiting for the server to tell you sending a message failed, but I guess it's faster than waiting on a timeout to assume a message succeeded.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote