• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Model animation wrong/bugged?

Status
Not open for further replies.
Level 4
Joined
Jun 13, 2010
Messages
114
I got an arrow key movement system.
And always when I use the arrows my model plays the death animation

so how to fix the animation?

As far as I remember there was kinda a trigger for it...

animationbug.png
 
Level 4
Joined
Jun 13, 2010
Messages
114
Level 23
Joined
Jan 1, 2009
Messages
1,609
So?
It's not that long, if you can distinguish where the arrowkeymovement-handling happens.
Why don't you tell us that in the first post?

So in the trigger DrivingFunctions you find this function:

JASS:
function RefreshCartAnim takes integer nPlayerIndex returns nothing

It updates the aimations for whatever reason. Your model doesn't have the correct animations at the correspondent indices, so it plays its death animation.

Either fix that model or the script.
But to be honest that hardcoded blizzardstuff is ugly and leaky.
Take a look at some system on the hive and adjust them as needed.
Here you also got a tutorial:
http://www.hiveworkshop.com/forums/...79/flexible-arrow-key-movement-system-164843/
 
Level 4
Joined
Jun 13, 2010
Messages
114
So?
It's not that long, if you can distinguish where the arrowkeymovement-handling happens.
Why don't you tell us that in the first post?

So in the trigger DrivingFunctions you find this function:

JASS:
function RefreshCartAnim takes integer nPlayerIndex returns nothing

It updates the aimations for whatever reason. Your model doesn't have the correct animations at the correspondent indices, so it plays its death animation.

Either fix that model or the script.
But to be honest that hardcoded blizzardstuff is ugly and leaky.
Take a look at some system on the hive and adjust them as needed.
Here you also got a tutorial:
http://www.hiveworkshop.com/forums/...79/flexible-arrow-key-movement-system-164843/


Id prefere to fix the script but Idk how since I didnt learned jazz, yet.
I can read and understand it but when I edit something on my own in the jazz code I get complile errors 90% of the cases.
and the blizzard thingy is true. I spend hours on bug fixing sometimes...
 
Level 17
Joined
Jul 17, 2011
Messages
1,864
lol why are you editing this map, anyway it will look like
JASS:
PlayAnimationByIndex(some integer here)
go to the triggers that contain movement in their names, press ctrl+shift+f and write playanimation or something it should be there, your other problem will be finding the movement animation which will require guessing it several times just replace this integer with some other integer and keep testing until u get it right
 
Level 4
Joined
Jun 13, 2010
Messages
114
lol why are you editing this map, anyway it will look like
JASS:
PlayAnimationByIndex(some integer here)
go to the triggers that contain movement in their names, press ctrl+shift+f and write playanimation or something it should be there, your other problem will be finding the movement animation which will require guessing it several times just replace this integer with some other integer and keep testing until u get it right

I can't find playanimation in none of my triggers.

I tried to fix it with this but that obviously doesnt work cuz things never simply work for me.

animationfix-1.png
 
Status
Not open for further replies.
Top