Any way to get pet position?
Is there any way to get the pet position x/y/z?
I noticed UnitPosition does not work for pets. I'd like to retrieve this to calculate distance from myself to get an idea of when it will despawn since pets despawn at ~100 yds. |
UnitPosition now only works for yourself and party members outside of instances.
Pets aren't dismissed when they despwn so setting a flag when hooking Dismiss Pet, or action from its button(s), and hooking the OnHide of PetActionBar works when checking for despawn. |
There is this function.
https://wow.gamepedia.com/API_UnitDistanceSquared It might work for you outside of certain areas. |
Quote:
Thanks for the help guys I guess what i'm trying to do is just not possible. |
If you just want to know approximately how far away your pet is, you can use IsItemInRange and IsSpellInRange.
That's how LibRangeCheck-2.0 works. |
All times are GMT -6. The time now is 03:40 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI