View Single Post
09-22-19, 03:57 PM   #4
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
After some research (particularly this thread), I am smarter now.

Using SetModel(fileID) seems to be pretty useless for any purpose I could think of.
What you need is SetDisplayInfo(displayID).

There are basically two ways of finding the displayID of your playerModelFrame:setUnit() created model:
  • If you know the name of what you are looking for, search for it in the wowhead NPCs. (You will also find druid forms etc. there even though they are technically not NPCs.) Look at the model in the wowhead 3d model viewer, then inspect the model viewer's HTML source code in your browser and search for "displayId".
  • If you have no idea what to search for, do GetModelFileID() on your playerModel frame. You can then look up the resulting fileID in a table like this (suggested here). There you will find all displayIDs using this fileID. In the case of Ghostwolf (fileID 926251) there are actually 64 displayIDs using it. So you have to try them all until you find the one you are after.
  Reply With Quote