After using the "Actor - Send actor message "ModelSwap Drone 0" to main actor of unit (Last created unit)" action, the model of my unit does change to the Drone, but the entire model is frozen, and unanimated. What might be causing this?
I found a temporary workaround by forcing the swapped Drone to play its "walk" animation infinitely. Since the drone never stops moving, this behaves correctly save for when the speed changes. Normally, a speed change would cause the unit's walk animation to speed up to scale with the new movement speed. Using this play animation method does not do that. I'll look into workarounds tonight (perhaps starting the animation again when the speed changes).
I know this may be super late, but seeing as I both ran into this problem and a fix, I'll necro dis a bit
Use the actor message "animation baseline start" after model swapping it doesn't seem to register the baselines (probably to make it easier to play specific animations after the swap) , just start em up again with the message and it should be fine
Rollback Post to RevisionRollBack
Zergling Blood : starcraft://map/1/35684
Game of Thrones : starcraft://map/1/189756
Tacticraft : starcraft://map/1/223625
To post a comment, please login or register a new account.
Hey all,
After using the "Actor - Send actor message "ModelSwap Drone 0" to main actor of unit (Last created unit)" action, the model of my unit does change to the Drone, but the entire model is frozen, and unanimated. What might be causing this?
I guess it should be noted that I have to change the model of a unit that will never stop moving, and so that's why it's probably doing this, as per the last post here: http://www.sc2mapster.com/forums/development/map-development/2457-changing-a-units-actor-midgame/
Any solutions?
I found a temporary workaround by forcing the swapped Drone to play its "walk" animation infinitely. Since the drone never stops moving, this behaves correctly save for when the speed changes. Normally, a speed change would cause the unit's walk animation to speed up to scale with the new movement speed. Using this play animation method does not do that. I'll look into workarounds tonight (perhaps starting the animation again when the speed changes).
@HeroLief: Go
I know this may be super late, but seeing as I both ran into this problem and a fix, I'll necro dis a bit
Use the actor message "animation baseline start" after model swapping it doesn't seem to register the baselines (probably to make it easier to play specific animations after the swap) , just start em up again with the message and it should be fine