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
Quote from: "ladiszlai"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?ThanksAfaik gameobjects have states, which you can set. If you set it to the correct state, it will play the animation.
Quote from: "Kaev"Quote from: "ladiszlai"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?ThanksAfaik 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?
Quote from: "ladiszlai"Quote from: "Kaev"Quote from: "ladiszlai"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?ThanksAfaik 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
Take a look at ObjectEffect.dbc
Should be HandleGameObjectSetStateCommand, State 4 (as source displays)Test that.gobject set state (...) 4
Check AnimationData.dbc, there is an entry with name "CustomSpell01" with ID 213... Try that maybe