Forum > Serverside Modding

Need help how to play an animation for GameObjects

(1/4) > >>

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?

Thanks

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?

Thanks
--- End quote ---

Afaik gameobjects have states, which you can set. If you set it to the correct state, it will play the animation.

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?

Thanks
--- End quote ---

Afaik gameobjects have states, which you can set. If you set it to the correct state, it will play the animation.
--- End quote ---

Thanks for the answer but how can i set the states?

Kaev:

--- 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?

Thanks
--- End quote ---

Afaik gameobjects have states, which you can set. If you set it to the correct state, it will play the animation.
--- End quote ---

Thanks for the answer but how can i set the states?
--- End quote ---

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

ladiszlai:

--- Quote from: "Kaev" ---
--- 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?

Thanks
--- End quote ---

Afaik gameobjects have states, which you can set. If you set it to the correct state, it will play the animation.
--- End quote ---

Thanks for the answer but how can i set the states?
--- End quote ---

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
--- End quote ---

Thank you

Navigation

[0] Message Index

[#] Next page

Go to full version