Thread Tools Display Modes
01-14-23, 03:57 AM   #1
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Bug while get dragon riding speed ?

Hi all,

I have a little addon that shows the speed of the player.
It is using the formula:

Lua Code:
  1. speed = (GetUnitSpeed("Player") / 7) * 100
  2. dataobj.text = string_format("%.1f", speed)

That I got a lot of times ago from here:
https://wowpedia.fandom.com/wiki/API_GetUnitSpeed

Now it works nicely if I use a new drake of DF and not fly with it showing 210 as speed but as soon it fly up it drop to 0 ... and stay 0 with all the drake abilities during the flight.

Is there something new I have to check ? Or the API have to be updated for the new dragon riding mount types ?

I have tried also different UnitID but without luck.

Thanks for any help.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote
01-14-23, 05:49 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
I've run into the same issue and it appears the function doesn't support the dragonriding mechanic. In watching events fire, I've been seeing VEHICLE_ANGLE_UPDATE fire a lot while on a dragonriding mount, but it doesn't do so reliably enough to be useful.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
01-14-23, 08:54 AM   #3
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Hi ...

as usual thanks so much for your reply.

It is really appreciated.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Bug while get dragon riding speed ?


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