PlayerModel question
I have a PlayerModel that I'd like to be able to have perform emotes on command, such as dancing or cheering.
Searching around suggests that I should be using PlayerModel:SetSequenceTime(sequence, time index) for this, but no matter what I do, I can't get the sequence to play properly.
I've tried several different ways of incrementing the time index, including setting it as part of an OnUpdate script. I've also tried PlayerModel:AdvanceTime() in OnUpdate.
Depending on what I set for the sequence argument, sometimes the model performs an animation. Sometimes it just sort of goes through the first part and then stutters back to the original idle motion. Also, the animations don't seem to correspond to the seqences in the .m2 files, at least as viewed using WoW Model Viewer.
Anyone have a clue as to how I can create arbitrary emote animations?
|