• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Move animation?

Status
Not open for further replies.
Level 11
Joined
Nov 15, 2007
Messages
800
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))
 
Level 8
Joined
Dec 30, 2011
Messages
134
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 ;)
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
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.
Top