[Solved] Move animation?

Status
Not open for further replies.
If you're using "Move unit instantly" it won't work, as "Move unit instantly" interrupts orders and animations. You need to use
Custom script: call SetUnitX(Unit, X coordinates)
Custom script: call SetUnitY(Unit, Y coordinates)

So your periodic trigger (I assume that's what you're using to move the caster) would look something like

  • Actions
    • Unit Group - Pick every unit in LifeBreakGroup and do multiple actions
      • Set TempUnit = (Picked unit)
      • Set TempPoint = Position of TempUnit
      • Set TempPoint2 = TempPoint offset by X towards Y degrees (X and Y being whatever values you have stored for the dash)
      • Custom script: call SetUnitX(udg_TempUnit, GetLocationX(udg_TempPoint2))
      • Custom script: call SetUnitY(udg_TempUnit, GetLocationY(udg_TempPoint2))
 
If you're using "Move unit instantly" it won't work, as "Move unit instantly" interrupts orders and animations. You need to use
Custom script: call SetUnitX(Unit, X coordinates)
Custom script: call SetUnitY(Unit, Y coordinates)

So your periodic trigger (I assume that's what you're using to move the caster) would look something like

  • Actions
    • Unit Group - Pick every unit in LifeBreakGroup and do multiple actions
      • Set TempUnit = (Picked unit)
      • Set TempPoint = Position of TempUnit
      • Set TempPoint2 = TempPoint offset by X towards Y degrees (X and Y being whatever values you have stored for the dash)
      • Custom script: call SetUnitX(udg_TempUnit, GetLocationX(udg_TempPoint2))
      • Custom script: call SetUnitY(udg_TempUnit, GetLocationY(udg_TempPoint2))


Thanks meti, love u ;)
 
But hey, when we use SetUnitX/Y, it does not interrupt orders, right ?
And we still get to order the unit to move/do action whatever they want (which will deviate from original path), but in DotA, Huskar can never receive orders, how they did it ?

I mean when it is charging, no matter what order you gave it, it won't obey such as Move, Attack, etc.
 
Status
Not open for further replies.
Back
Top