Foresector
Member
- Reaction score
- 16
Ok, so for one of my characters Im trying to make it so that when he moves, he will just automatically keep blinking until he gets to the target destination. The ability Im using has a cooldown of 0.3 seconds yet when I order him to move there is like a 5 second gap.
Code:
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Unit-type of (Triggering unit)) Equal to Crippled Psychic
Actions
Set ShiftDistance = (Distance between (Position of CrippledPsychic) and ShiftTarget)
Set ShiftBoolean = False
Set ShiftTarget = (Target point of issued order)
Set CrippledPsychic = (Triggering unit)
Trigger - Run Shift Movement <gen> (checking conditions)
Wait until (ShiftBoolean Equal to True), checking every 1.00 seconds
Trigger - Turn off Shift Movement <gen>
Code:
Events
Time - Every (2.70 - ((Real((Level of Shift for Crippled Psychic 0034 <gen>))) x 0.60)) seconds of game time
Conditions
Actions
Set ShiftDistance = (Distance between (Position of CrippledPsychic) and ShiftTarget)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ShiftDistance Less than or equal to 100.00
Then - Actions
Set ShiftBoolean = True
Else - Actions
Unit - Order CrippledPsychic to Night Elf Warden - Blink ShiftTarget