View Single Post
07-03-16, 03:40 AM   #66
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by telkostrasz View Post
- For scaling two models we need to know the races of each. But again, AFAIK there is no way to get an NPC race (UnitRace on a npc does not return anything) ? So we used the modelPath to map it to the race.
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.

Last edited by semlar : 07-03-16 at 03:47 AM.