| 10-01-2010, 08:10 PM | #1 |
Well, I am making an ability in which unit has to be moved by triggers and is playing "attack walk stand spin" animation. I move unit by SetUnitX and SetUnitY calls and I play animation using custom ability which is based on armor bonus and just has "Art - Animation Names" field set to "attack walk stand spin". It works pretty fine however if player orders unit to move during the ability is being used (it is a dash ability) the unit will stop the "attack walk stand spin" animation and will play standard "move" animation. I want to make player unable to control casting unit during dash. I also want to avoid: -pauses -changing owner -removing from selection -stunning/snaring/hiding(?) Ah and also I'm using periodic timer with duration set to 0.015 I don't use SetUnitPosition or SetUnitPositionLoc because animation won't play, even if player doesn't give the unit any order. |
| 10-03-2010, 02:21 AM | #2 |
if you pause or stun unit no orders will pass. i personaly not able to reproduce animation change with armor bonus, if you post map with demo ability-trigger we will see. to change animation you can attach animation flag to unit and then set animation speed to zero. |
| 10-03-2010, 08:17 AM | #3 |
Oh I forgot to say here that I already solved that problem, yes the animation flag was the thing that made it work. |
