Thanks, that 3D model tip is awesome.
I will gather them up:
Code:
summer pet: modelviewer.show({ type: 1, typeid: 16701, displayid: 16587 })
wisp: modelviewer.show({ type: 1, typeid: 3681, displayid: 10045 })
forrest wisp: modelviewer.show({ type: 1, typeid: 15624, displayid: 12432 })
ancient wisp: modelviewer.show({ type: 1, typeid: 17946, displayid: 17607 })
electromental: modelviewer.show({ type: 1, typeid: 21729, displayid: 20594 })
shen'dralar wisp: modelviewer.show({ type: 1, typeid: 14361, displayid: 10045 })
restless soul: modelviewer.show({ type: 1, typeid: 11122, displayid: 1825 })
night elf wisp: modelviewer.show({ type: 1, typeid: 20069, displayid: 19304 })
Will be interesting to see if they all look the same. On screenshots they differ but that may be another story.
*edit*
It is finally working!
Code:
local addon = CreateFrame("Frame", nil, UIParent)
addon:RegisterEvent("PLAYER_LOGIN")
addon:SetScript("OnEvent", function (s,e,...)
if(e=="PLAYER_LOGIN") then
addon:initme()
end
end)
local displayid = {}
displayid[1] = 16587;
displayid[2] = 10045;
displayid[3] = 12432;
displayid[4] = 17607;
displayid[5] = 20594;
displayid[6] = 10045;
displayid[7] = 1825;
displayid[8] = 19304;
function addon:initme()
local m2 = CreateFrame("PlayerModel", "TestaniModel2",UIParent)
m2:SetSize(256,256)
m2:SetPoint("CENTER",256,0)
m2:SetFacing(math.pi); --math.pi = 180°
m2:SetDisplayInfo(displayid[1])
end