I'm a complete noob with models and got no clue what the FileDataID and NameHash stuff is
Recently heard on
#wowuidev that the reason for the change could be a combination of performance and memory
But my question is, why does
playermodel:GetDisplayInfo() return
0 after running
playermodel:SetUnit("target") ?
Is it even possible to get a displayId from a specific unitId?
Maybe then it would be possible to get the modelpath from Resike's
AllModels.lua if it was put in a library
It could help the Storyline addon if that was possible. There also was a recent reddit post about it
https://www.reddit.com/r/wow/comment...xt_in_the_post
Lua Code:
-- from CreatureDisplayInfo.db2 or CreatureModelData.db2 (?)
local paths = {
[0] = "none",
[32806] = "character\\human\\female\\humanfemale_hd.m2", -- Vanessa VanCleef
}
local m = CreateFrame("PlayerModel")
m:SetPoint("CENTER")
m:SetSize(500, 500)
local function GetDisplayId(unit)
m:SetUnit(unit)
return m:GetDisplayInfo() -- always returns 0 ...
end
-- test target
local displayId = GetDisplayId("target")
local modelpath = paths[displayId]
print(modelpath) -- prints "none"
-- test vancleef
m:SetDisplayInfo(32806)
local displayId = m:GetDisplayInfo() -- gets 32806
local modelpath = paths[displayId]
print(modelpath) -- prints "character\\human\\female\\humanfemale_hd.m2"