K
KiroKlydwn
Guest
I'm having a problem instantly changing the unit facing angle of a hero when an ability is activated. My problem is: none of the actions I see in WE or WEU instantly change the unit facing angle, they only order the unit to face that angle.
More specifically, I'm trying to create an ability that passively activates when the hero (VArbiter) deals damage to an enemy hero. What the ability does is have a percent chance to move the VArbiter behind the enemy hero, and instantly face enemy he attacked.
I know that I could just give my hero a very high natural turning rate, but that seems unfair.
I'm using pre-placed heroes (so I can use unit - specific unit events), so I don't think I can just create a new unit that faces the right angle.
Here's what I have so far. Like I said, it works except for the fact that the hero doesn't turn fast enough.
SAEH is a variable that is set to the hero (VArbiter) by another trigger.
SAET is a variable that is set to the enemy unit that the hero (VArbiter is attacking).
Reflecting the Attacks of Evil is a buff that the hero (VArbiter) gains when he uses an ability to activate all of this.
I have also tried creating a dummy caster that temporarily increases the hero's movement speed until he attacks, but that did not seem to fix the problem.
Thanks!
More specifically, I'm trying to create an ability that passively activates when the hero (VArbiter) deals damage to an enemy hero. What the ability does is have a percent chance to move the VArbiter behind the enemy hero, and instantly face enemy he attacked.
I know that I could just give my hero a very high natural turning rate, but that seems unfair.
I'm using pre-placed heroes (so I can use unit - specific unit events), so I don't think I can just create a new unit that faces the right angle.
Here's what I have so far. Like I said, it works except for the fact that the hero doesn't turn fast enough.
SAEH is a variable that is set to the hero (VArbiter) by another trigger.
SAET is a variable that is set to the enemy unit that the hero (VArbiter is attacking).
Reflecting the Attacks of Evil is a buff that the hero (VArbiter) gains when he uses an ability to activate all of this.
Code:
RD Attacking Heroes Copy
Events
Unit - Dragoon 0042 <gen> Takes damage
Unit - Drow Ranger 0053 <gen> Takes damage
Unit - Bow Ranger 0047 <gen> Takes damage
Conditions
(Triggering unit) Equal to SAET
(Damage source) Equal to VArbiter
(SAEH has buff Reflecting the Attacks of Darkness ) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 3) Equal to 1
Then - Actions
Set RDHFacing = (Facing of (Damage source))
Unit - Move (Damage source) instantly to ((Position of Dragoon 0042 <gen>) offset by 128.00 towards RDHFacing degrees), facing (Position of Dragoon 0042 <gen>)
Unit - Order SAEH to Attack SAET
Else - Actions
Do nothing
I have also tried creating a dummy caster that temporarily increases the hero's movement speed until he attacks, but that did not seem to fix the problem.
Thanks!


