View Single Post
07-03-16, 03:18 AM
A Murloc Raider
Join Date: Jul 2016
Hi there, I'm the author of Storyline.
We indeed used GetModel to get a model ID. We don't care if it's a path, a number a hash or whatever, we just need a way to differentiate one model from another when set with SetUnit(unitID).
The reason we do that is because:
- For animations we play several animation sequentially. So we need to know when the previous model animation is finished before launching the next. AFAIK there is no event for this. So we mapped the animation duration based on the modelPath (but again, even a number/hash could work).
- 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.
So I completely understand that Blizzard want to get away from filePath. But when removing GetModel they didn't brought any replacement allowing to get these hash/fileID instead ?
In short: we need the modelPath/id/hash/whatever to map it to a race, because we need the race for scaling or animation duration. But any idea other is welcome.
Hope it helps.
View Public Profile
Send a private message to telkostrasz
Find More Posts by telkostrasz