GetTargetMountedStateInfo() issues
Ive had this function as part of my addon for nearly 9mo now with no issues but recently I began reworking the function to not just mount my "saved player @NAME" but anyoone in group that is riding a dual mount and has free pasenger slot. This is when I noticed this function is now returning true & true for GetTargetMountedStateInfo() even when noone is on a mount at all:
Code:
for iD = 1, GetGroupSize() do |
Firstly be aware that function doesn't return the correct data when you are too far from the group member.
Secondly it still works properly in minimap by Fyrakin. Try to verify what GetGroupUnitTagByIndex outputs because it does weird things sometimes. :) EDIT: Sorry I read too fast, I'm only using the 1st value returned and it works correctly, I don't know for value 2 and 3 GetTargetMountedStateInfo(*string* _characterOrDisplayName_) ** _Returns:_ *[MountedState|#MountedState]* _mountedState_, *bool* _isRidingGroupMount_, *bool* _hasFreePassengerSlot_ |
Quote:
|
Moved the thread as this is a question about a lua API function (even if referenced to an already released addon the forum "Released addons" is for "Addon-specific support threads created by their authors").
Edit: Did you check via d() messages if the playerID of the unit and the displayNames are the correct/expected ones? Maybe it always passes in the same id/account, or some nil value and thus returns true |
Quote:
just tested: Code:
for iD = 1, GetGroupSize() do Code:
@NAME - charname - group1 - true - true |
Quote:
This likly showed up maybe when the new mount favourites feature was added as it did work properly this spring. I know this because it was my very 1st feature and the very original purpose of RidinDirty. |
Maybe you need to combine the 1st return param with the others then.
If 1st MountedState is unmounted -> ignore 2nd and 3rd param! And if 1st param says "mounted" then only consider the snd and 3rd param |
Quote:
|
Okay, if it's a bug you could describe it here with simple example and expected result, and question ZOs if this is known and needs a fix:
https://www.esoui.com/forums/forumdisplay.php?f=187 |
All times are GMT -6. The time now is 12:11 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI