Does anybody know a way that i can swap a baseline animation via actor events? What I'm trying to do is, a unit that normally runs, recieves a debuff which slows him down, and so "walk" would change to "walk slow". If it's impossible to change it, is there a work-around i can use? Thanks in advance!
I would try the "Apply animation group" (or something) message and apply the "slow" property. It should add the slow to each animation, if it finds a matching one (so it tries attack slow as well, but that probably doesn't exist).
A.BBB would be your new move speed for the unit... Let's say your unit, at normal speed, moves at 3. And when he has the debuff on, he runs half as fast as normal. So, A.BBB would become 1.5000. And Y.ZZZZ would be 3.0000.
Does anybody know a way that i can swap a baseline animation via actor events? What I'm trying to do is, a unit that normally runs, recieves a debuff which slows him down, and so "walk" would change to "walk slow". If it's impossible to change it, is there a work-around i can use? Thanks in advance!
I would try the "Apply animation group" (or something) message and apply the "slow" property. It should add the slow to each animation, if it finds a matching one (so it tries attack slow as well, but that probably doesn't exist).
Cant you adjust the speed of the animation using the Animation Set Time Scale?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
A.BBB would be your new move speed for the unit... Let's say your unit, at normal speed, moves at 3. And when he has the debuff on, he runs half as fast as normal. So, A.BBB would become 1.5000. And Y.ZZZZ would be 3.0000.
Works fine, I just needed to change a single animation on my model, and that wasn't too big a problem. thanks!