- Joined
- Jun 26, 2014
- Messages
- 530
When I move a unit instantly every 0.03 seconds it doesn't play any animations even doe I've se it to play the walk or attack animation every 0.03 seconds. Why doesn't it work?
I was looking also for a set unit X and Y method but I could not get it to work. Please post triggers of how to do it the right way.
My current trigger:
I was looking also for a set unit X and Y method but I could not get it to work. Please post triggers of how to do it the right way.
My current trigger:
-
Phantom Charge Loop
-

Events
-


Time - Every 0.03 seconds of game time
-
-

Conditions
-

Actions
-


Set SpellPChargeReal[1] = (SpellPChargeReal[1] + 1.00)
-


Set SpellPChargePoint[1] = (Position of SpellPChargeUnit[1])
-


Set SpellPChargePoint[2] = (SpellPChargePoint[1] offset by SpellPChargeReal[1] towards (Facing of SpellPChargeUnit[1]) degrees)
-


Set SpellPChargePoint[3] = (Position of SpellPChargeUnit[2])
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Integer(SpellPChargeReal[2])) Less than or equal to (50 + (50 x (Level of Phantom Charge for SpellPChargeUnit[1])))
-
-



Then - Actions
-




Set SpellPChargeReal[2] = (SpellPChargeReal[2] + 0.50)
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Integer((Distance between SpellPChargePoint[1] and SpellPChargePoint[3]))) Less than or equal to 130
-
-



Then - Actions
-




Unit - Turn collision for SpellPChargeUnit[1] On
-




Unit - Cause SpellPChargeUnit[1] to damage SpellPChargeUnit[2], dealing (SpellPChargeReal[2] + (1.00 x (Real((Strength of SpellPChargeUnit[1] (Include bonuses)))))) damage of attack type Spells and damage type Normal
-




Special Effect - Create a special effect attached to the origin of SpellPChargeUnit[2] using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
-




Special Effect - Destroy (Last created special effect)
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-




Animation - Play SpellPChargeUnit[1]'s walk animation
-




Unit - Make SpellPChargeUnit[1] face SpellPChargeUnit[2] over 0.02 seconds
-




Unit - Move SpellPChargeUnit[1] instantly to SpellPChargePoint[2]
-
-
-
-
