I use a model swap for an ability in my map. While the ability is active my zealot swaps model with a dark zealot and the after the ability expires back to the normal zealot. Sometimes after the model is swapped back to the normal zealot the movement animation is broken. The zealot does not walk anymore but slides across the map without his legs moving. Does anyone have an idea where the problem might come from or how to fix it?
I had the exact same problem when Swapping my Crabeetle model for a Roach Model (And back) where the Crabeetle model would sometimes disappear after the ability was used (And reappear for half a second at random intervals XD).
I just used @TyaStarcraft's method and now my Crabeetle's don't disappear (Sweet, problem fixed).
Is there a known reason why using animation baseline works for fixing this problem?
I think it happens if the current model is using an animation that isn't available to the swapped model. The game gets confused, and will just wait out whatever animation was previously playing.
What the above commands do is basically tell the actor to drop whatever animation it was doing, and start afresh with the new model.
I use a model swap for an ability in my map. While the ability is active my zealot swaps model with a dark zealot and the after the ability expires back to the normal zealot. Sometimes after the model is swapped back to the normal zealot the movement animation is broken. The zealot does not walk anymore but slides across the map without his legs moving. Does anyone have an idea where the problem might come from or how to fix it?
Use "animation baseline stop" before your modelswap event, and then "animation baseline start" after it.
I had the exact same problem when Swapping my Crabeetle model for a Roach Model (And back) where the Crabeetle model would sometimes disappear after the ability was used (And reappear for half a second at random intervals XD).
I just used @TyaStarcraft's method and now my Crabeetle's don't disappear (Sweet, problem fixed).
Is there a known reason why using animation baseline works for fixing this problem?
I think it happens if the current model is using an animation that isn't available to the swapped model. The game gets confused, and will just wait out whatever animation was previously playing.
What the above commands do is basically tell the actor to drop whatever animation it was doing, and start afresh with the new model.