Originally Posted by telkostrasz
- 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.