Thread Tools Display Modes
09-15-14, 12:56 AM   #21
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Gello View Post
UnitDistanceSquared is, as it says, the distance from you to the unit, squared. If your friendly target is 50 yards away, UnitDistanceSquared("target") returns 2500. I've not done any debugprofilestop testing on it to tell if it's faster than (x2-x1)^2 + (y2-y1)^2, but it's very likely.
I wonder why they're not doing the final step of that equation to give us 50 instead of 2500? Is there any situation where you'd actually want the squared distance, and wouldn't just be immedately doing (value ^ 0.5) in your code?
__________________
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.
 
09-15-14, 01:33 AM   #22
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
It's not an answer for why they didn't go the extra step, but if you only want to know if a unit is within/outside X yards, taking the square root of the return isn't necessary. Maybe they decided to skip the last step for efficiency?

In this addon it just checks distance<22500 (150 yards) or 75000 (500 yards). edit: and apparently there may be a need to get a squared return for retards like me who can't work a calculator. 500^2 is 250000.

Last edited by Gello : 09-15-14 at 01:38 AM.
 
09-18-14, 12:37 AM   #23
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Changes from 18850 to 18888:

Code:
C_Garrison.GetFollowerPortraitIconIDByID
C_Garrison.GetNumActiveFollowers
C_Garrison.GetShipmentReagentCurrencyInfo
GetMaxRewardCurrencies
GetTutorialsEnabled
IsBreadcrumbQuest
 
09-18-14, 05:00 AM   #24
TOM_RUS
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 95
Originally Posted by Duugu View Post
ClosestGameObjectPosition
ClosestUnitPosition

Uh, these look promissing. But I bet they are related to garrison stuff, hm?
Those now in use in build 18888 by new blizzard addon: Interface\AddOns\Blizzard_Tutorial
 
09-19-14, 12:49 AM   #25
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Changes from 18888 to 18898:

Code:
LFDCheckRolesRestricted
LFDPopupCheckRoleSelectionValid
LFDQueueCheckRoleSelectionValid

C_LFGList.GetCategoryInfo
 
09-26-14, 09:12 AM   #26
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Changes in 18927:

Code:
C_LFGList.GetCategoryInfo
I guess it got removed by mistake
 
 

WoWInterface » Site Forums » Archived Beta Forums » WoD Beta archived threads » Added/removed API from live (18414) to build 18566

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off