View Single Post
10/23/23, 12:04 PM   #5
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Originally Posted by Baertram View Post
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

just tested:

Code:
for iD = 1, GetGroupSize() do
		local playerID = GetGroupUnitTagByIndex(iD)
		local playerCharName = GetUnitName(playerID)
		local playerDisplayName = GetUnitDisplayName(playerID)
		local _, isRidingGroupMount, hasFreePassengerSlot = GetTargetMountedStateInfo(playerDisplayName)
                df(RidinDirty.logo .. " " .. tostring(playerDisplayName) .. " - " .. tostring(playerCharName) ..  " - " .. tostring(playerID) .. " - " .. tostring(isRidingGroupMount) .. " - " .. tostring(hasFreePassengerSlot))--TEST
and its outputting:
Code:
@NAME - charname - group1 - true - true
@NAME - charname - group2 - true - true
@NAME - charname - group3 - true - true
when were all standing near eachother unmounted. Everything is correct including @names and charnames except the true - true which should be false - false

Last edited by sinnereso : 10/23/23 at 12:06 PM.
  Reply With Quote