I've been trying to figure this out myself and just can't find a solution.
I have a morph ability that is transient so that it can be used while the unit is moving without stopping the unit.
The ability works fine if the unit is standing still, but if the unit is moving then the new unit it morphed into plays the "Stand" animation. It will not play the walk animation until the unit is ordered to stop and then move again.
I've noticed this problem in some other arcade maps, most notably Hide & Kill (Assassins), where you can morph between "Assassin" (Ghost model) and Civilian while moving. If you're moving while you use this ability (often the case when you're trying to flee from an area) your unit won't play the run animation. It's a big problem in that map because you're supposed to be indistinguishable from other A.I. civilians and this glitch breaks your disguise.
I also noticed that this can even happen when the morph is non-transient if you order the unit to move very shortly after the morph or during.
So my question is how do you make the unit play the correct animation after a moving/transient morph?
I've tried an ugly workaround using a bunch of timers and play animation messages, but it doesn't always work for some reason and it's too convoluted for me to debug at this point. Not being able to rearrange or group actor events or use keyboard shortcuts doesn't help.
I feel like there must be a simpler way to do this but I can't find it.
I don't think you understand the problem. I know how to play a specific animation when a unit morphs. The problem is that I can either only play the animation once (then the unit plays the Stand animation even though it's walking) or forever (even when the unit stops).
Try it yourself with the test map I attached to this post. All I did was make the Viking's two morph abilities transient (unchecked the "Wait Until Stopped" flag and checked the "Transient" flag). I also changed the Mover of the Viking's assault mode mode to Fly because otherwise the morph won't be transient (it stops moving). I didn't even touch the actors.
I did some further investigation and discovered that when the morphed unit stops moving for the first time, there's no "Unit Movement Update" event, which seems like a bug to me. I hope there's a workaround.
I've been trying to figure this out myself and just can't find a solution.
I have a morph ability that is transient so that it can be used while the unit is moving without stopping the unit.
The ability works fine if the unit is standing still, but if the unit is moving then the new unit it morphed into plays the "Stand" animation. It will not play the walk animation until the unit is ordered to stop and then move again.
I've noticed this problem in some other arcade maps, most notably Hide & Kill (Assassins), where you can morph between "Assassin" (Ghost model) and Civilian while moving. If you're moving while you use this ability (often the case when you're trying to flee from an area) your unit won't play the run animation. It's a big problem in that map because you're supposed to be indistinguishable from other A.I. civilians and this glitch breaks your disguise.
I also noticed that this can even happen when the morph is non-transient if you order the unit to move very shortly after the morph or during.
So my question is how do you make the unit play the correct animation after a moving/transient morph?
I've tried an ugly workaround using a bunch of timers and play animation messages, but it doesn't always work for some reason and it's too convoluted for me to debug at this point. Not being able to rearrange or group actor events or use keyboard shortcuts doesn't help.
I feel like there must be a simpler way to do this but I can't find it.
It depends how the actors are set up. Is there a transition morph model actor?
You should set up different actor events that fire when the unit morphs, using terms to designate which animation to play upon morphing.
Custom Campaign Initiative | Mapster Community Project: Data Wizards
Starcraft II: Unsung Rebels, a custom campaign for Starcraft II
SC2Saver, a way to create saved games via trigger
Frustrated with the editor and would like answers in real time? Join the SC2Mapster Discord!
Thanks for replying.
I don't think you understand the problem. I know how to play a specific animation when a unit morphs. The problem is that I can either only play the animation once (then the unit plays the Stand animation even though it's walking) or forever (even when the unit stops).
Try it yourself with the test map I attached to this post. All I did was make the Viking's two morph abilities transient (unchecked the "Wait Until Stopped" flag and checked the "Transient" flag). I also changed the Mover of the Viking's assault mode mode to Fly because otherwise the morph won't be transient (it stops moving). I didn't even touch the actors.
I did some further investigation and discovered that when the morphed unit stops moving for the first time, there's no "Unit Movement Update" event, which seems like a bug to me. I hope there's a workaround.