View Single Post
08-11-14, 08:32 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Hmm....
So this would work now?

Lua Code:
  1. local m = CreateFrame("PlayerModel")
  2. m:SetModel("interface\\buttons\\talktomequestionmark.m2") --in case setdisplayinfo fails
  3. --http://www.wowhead.com/npc=16701
  4. m:SetCreature(16701)
  5. print(m:GetModel())

Old topic on model caching:
http://www.wowinterface.com/forums/s...ad.php?t=34898

Means we can create a model viewer by creature id now? That would be awesome.

Double dip for my model viewer.

I'm not sure if this will make it to the live server though. Sometimes they only activate stuff for testing on the PTR.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 08-11-14 at 08:40 AM.