PlayerModel:SetDisplayInfo(displayID) - (unrelated) Can show an NPC's visual without needing to have seen the mob before. The only way to get displayID is through the DBCs though.
|
HOLY COW. Is it finally possible to display models you have not in your cache?
I'm dying fo a solution on displaying any kind of wisp model. Everyhting I tried didn't work out.
Best I had was
(1)
Code:
local m = CreateFrame("Model",nil,UIParent)
m:SetModel("Creatures\\Wisp\\Wisp.mdx")
Or
(2)
Code:
local m = CreateFrame("PlayerModel",nil,UIParent)
--http://www.wowhead.com/npc=16701
local creatureID = 16701 --use ID from Wisp Pet
m:SetCreature(creatureID)
(1) Problem: I have the model but with huge white squares, I guess that is beacause I had no skin specified that would be applied to that model. If would do that if I knew how to apply skins to models in LUA. No clue atm.
(2) Works, but only when the pet is cached.
Questions:
- Can I apply skinds to models? If yes how.
So this should bring me my wisp...
Code:
local m = CreateFrame("PlayerModel",nil,UIParent)
--http://www.wowhead.com/npc=16701
local creatureID = 16701 --use ID from Wisp Pet
m:SetDisplayInfo(creatureID)
Link to wisp pet:
http://www.wowhead.com/npc=16701
Interesting is this aswell:
http://www.wowhead.com/spell=24740
It applies "Apply Aura: Change Model (3681)"
That leads to:
http://www.wowhead.com/npc=3681
I finally want my wisp animation. Damn'it.