Originally Posted by Baertram
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