Forum > Modelling and Animation

[QUESTION] Adding 1 Time Play Animations to Character Create

(1/2) > >>

spiderwaseem:
Hello!

Since Cataclysm, when you click on a class in the character creation screen, it plays an animation based on the class picked. So for example if you pick a Warrior, the race will Roar 1 time. If you pick a Mage or Warlock, the race will cast a ranged spell.

I want to do something similar or exact on WoTLK.
I've looked through all the FrameXML and GlueXML files in Cataclysm, but I couldn't find a solution.
So my guess is that this isn't made through lua/xml? (ofc not xml, but lua, I would have thought so).

I've tried Google, and a Blizzard forum post was made by some user who said to use the following code:

--- Code: ---Model:SetAnimation()
--- End code ---
However, that code didn't work out (I did put in a number of an Animation in the "()", Ex:

--- Code: ---Model:SetAnimation(74);
--- End code ---
This is the forum I looked at: http://us.battle.net/wow/en/forum/topic/8569600188


If anyone can help me set a spell cast or animation based on a class selection for WoTLK 3.3.5, then that would be amazing!

Thank You.

samgartell:
I think people are gonna need to know how you tried to implement that code, possibly with snippets and why it didn't work out. Asking for help on a forum is a two way deal, give us what you've got so far, so we don't have to make the same mistakes.

Have you taken a loot at Cataclysms character create XML/LUA? Unfortunately PlayerModel:SetAnimation wasn't added until 5.0.4 so that's why it didn't work, and I can't promise whatever they did in Cataclysm to make it work is in 3.3.5a either, it was a fairly big change from LK to Cata, but it's still your best bet.

spiderwaseem:

--- Quote from: "samgartell" ---I think people are gonna need to know how you tried to implement that code, possibly with snippets and why it didn't work out. Asking for help on a forum is a two way deal, give us what you've got so far, so we don't have to make the same mistakes.

Have you taken a loot at Cataclysms character create XML/LUA? Unfortunately PlayerModel:SetAnimation wasn't added until 5.0.4 so that's why it didn't work, and I can't promise whatever they did in Cataclysm to make it work is in 3.3.5a either, it was a fairly big change from LK to Cata, but it's still your best bet.
--- End quote ---

Thanks for the reply.
I do notice that the code doesn't exist yet in 3.3.5.
I was making this thread to see if anyone can help me find the right code to use.
I have looked all over the Cataclysm's FrameXML and GlueXML lua/xml files, however, I found nothing.
I triple checked but there is nothing in those files with the following terms:

--- Quote ---anim
animation
animate
model:
playermodel:
setan
setanim
spell
cast
--- End quote ---
And since I really want to find an answer for this, I checked the entire xml/lua for CharacterCreate.lua/xml, CharacterSelect.lua/xml, GlueParent.lua/xml, and a lot more.

I couldn't find anything relating to playing an animation or spell or attack in the character creation screen.
Or even to play an animation in general.

So if you could possibly provide me with anymore information, that would be great.

Thank You.

Ghaster:
I am pretty sure that the animations are hardcoded into the wow.exe

schlumpf:
It is hardcoded. Those setanimation functions on simplemodel are only there since mop, I think. You may be able to fake stuff, but certainly not with spells cast and stuff.

Navigation

[0] Message Index

[#] Next page

Go to full version