- Joined
- Oct 16, 2013
- Messages
- 246
Hi, I'm trying to make a unit that takes less damage if hit on the left side, in a similar way that Rigwarl's Bristleback works in Dota. That's all what I've got:
-
Events
- Unit - 'My unit' Is attacked
- Conditions
-
Actions
- Set MyUnit = 'My unit'
- Set Attacker = (Attacking unit)
- Set MyUnitFacingAngle = (Facing of 'My unit')
- Set AttackerFacingAngle = (Facing of (Attacking unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If: Conditions
- MyUnitFacingAngle Greater than or Equal to (AttackerFacingAngle + 45.00)
- MyUnitFacingAngle Less than or Equal to (AttackerFacingAngle + 135.00)
- Then: Actions
- Else: Actions
-
If: Conditions