WoWInterface - View Single Post - PlayerModel:SetDisplayInfo
View Single Post
07-03-16, 04:06 AM   #68
A Murloc Raider
Join Date: Jul 2016
Posts: 4
Originally Posted by semlar View Post
If you want to store the scale for specific NPCs you can get their npcID from UnitGUID and use that as an identifier.

It won't be as broad as specifying a scale for a specific model that's shared between different units, but it will be more accurate since models don't determine the size of a unit. For example, blizzard uses the tauren model to create the flaskataur on the PTR, which is considerably larger than a normal tauren.

I didn't realize UnitRace didn't work on NPCs that use a playable race.
Yes, using NPC Ids is a solution we though about, but that means we have to map all npcID from the game to a race? How much IDs does that represents? How could this be easily maintenable?