#need help with removing the default 90° death animation

1 messages · Page 1 of 1 (latest)

granite stirrup
#

I've put this in the animation, where parent is a folder which contains all the others, but it doesn't seem to work at all. I need help, thanks.

"bones": {
                "parent": {
                    "rotation": [
                        0,
                        0,
                        "Math.min(Math.sqrt(Math.max(0, query.anim_time * 20 - 0.5) / 20 * 1.6), 1) * -90"
                    ]
                },

This obviously only a part of the json animation itself, just to give the idea.

late flint
#

are you using an animation controller to trigger it? something needs to query a value to indicate the animation needs to run. animation controller using !q.is_alive in a "transition" which triggers the specific animation is probably what you are missing. youve defined the animation... now you need to add the trigger event via some query

lime mortar
#

put the anim in the root bone of the model

granite stirrup
granite stirrup
lime mortar
#

did you put your animation to play when !query.is_alive?

lime mortar
#

and it still didn't work?

granite stirrup
#

Yes

#

That's the problem

granite stirrup
#

Thanks for your help

lime mortar
#

maybe try putting it in scripts instead?

#

it depends if you want it to play constantly or not though

granite stirrup
#

it happens that the entity dies and then rotates and then rotates back up, the two animations (the hardcoded one and the custom one) aren't overrided, they play one after the other. @lime mortar

lime mortar
#

looks like i gotta test something first

#

some of the bones still move even after the animation played

#

which means

#

make the bones that still move the animation and make it override the previous animation

#

you probably also have to make the animation stop playing when the mob dies

#

i'm also kind of confused with this one

#

mine works but the head and arms still move like they are dead

granite stirrup
#

I didn't understand you very much

safe meadow
#

reviving thread, did you guys come up with a solution? have the same problem here