Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Serverside Modding => Topic started by: ladiszlai on March 11, 2015, 07:39:30 pm
-
Hi
I need help, how to play a GameObject animation? (I found some aanimations for a gobject in wowmodelviewer)
I tryed with the emotes but it doesnt work for me(only works for NPC)
Any body have got some idea?
Thanks
-
Hi
I need help, how to play a GameObject animation? (I found some aanimations for a gobject in wowmodelviewer)
I tryed with the emotes but it doesnt work for me(only works for NPC)
Any body have got some idea?
Thanks
Afaik gameobjects have states, which you can set. If you set it to the correct state, it will play the animation.
-
Hi
I need help, how to play a GameObject animation? (I found some aanimations for a gobject in wowmodelviewer)
I tryed with the emotes but it doesnt work for me(only works for NPC)
Any body have got some idea?
Thanks
Afaik gameobjects have states, which you can set. If you set it to the correct state, it will play the animation.
Thanks for the answer but how can i set the states?
-
Hi
I need help, how to play a GameObject animation? (I found some aanimations for a gobject in wowmodelviewer)
I tryed with the emotes but it doesnt work for me(only works for NPC)
Any body have got some idea?
Thanks
Afaik gameobjects have states, which you can set. If you set it to the correct state, it will play the animation.
Thanks for the answer but how can i set the states?
Depends on how you want to do it. Do you want to do it in a script?
Check the code of the ".gobject set state" command: https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/scripts/Commands/cs_gobject.cpp#L631
-
Hi
I need help, how to play a GameObject animation? (I found some aanimations for a gobject in wowmodelviewer)
I tryed with the emotes but it doesnt work for me(only works for NPC)
Any body have got some idea?
Thanks
Afaik gameobjects have states, which you can set. If you set it to the correct state, it will play the animation.
Thanks for the answer but how can i set the states?
Depends on how you want to do it. Do you want to do it in a script?
Check the code of the ".gobject set state" command: https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/scripts/Commands/cs_gobject.cpp#L631
Thank you
-
I am here again with this topic for help.
If I have a gameobject with Animation called "CustomSpell01" what is the correct number for the "state" ? (To play Ingame) Anybody know ?
-
Take a look at ObjectEffect.dbc
-
Take a look at ObjectEffect.dbc
This isn't it.
-
So, No ideas ?
-
Should be HandleGameObjectSetStateCommand, State 4 (as source displays)
Test that.
gobject set state (...) 4
-
Should be HandleGameObjectSetStateCommand, State 4 (as source displays)
Test that.
gobject set state (...) 4
When i set the object state to 4 , my object don't play the Anim.
Have you got any idea ? I really need for this.
-
Check AnimationData.dbc, there is an entry with name "CustomSpell01" with ID 213... Try that maybe
-
Check AnimationData.dbc, there is an entry with name "CustomSpell01" with ID 213... Try that maybe
I tryed this before ,but this not working.
-
So it is inpossible to play anims for objects.
-
Did u try .gob set state #guid 4 213
Where the 4 tells trinity to send SMSG_GAMEOBJECT_CUSTOM_ANIM packet
-
Did u try .gob set state #guid 4 213
Where the 4 tells trinity to send SMSG_GAMEOBJECT_CUSTOM_ANIM packet
Yeah I tryed but didn't worked. (thank you for trying to help me)