- Joined
- Mar 24, 2013
- Messages
- 1,105
I'm trying to craft a trigger that causes a unit to deal additional damage when it's target is facing it directly (By directly, I mean if a unit is the origin of a some circle with respect to the direction in which it is facing I want that semi circle to proc the additional damage. (Added a picture to further clarify) (Red is where the bottom footman would deal additional damage, Blue is where no bonus damage would be had)
This is what I've come up with so far, but it does not work...really at all...lol so any help would be very much appreciated!
Thanks!
This is what I've come up with so far, but it does not work...really at all...lol so any help would be very much appreciated!
Thanks!
-
Attempt
-
Events
- Unit - A unit Is attacked
- Conditions
-
Actions
- Set TempReal = someValue
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Facing of (Attacking unit)) Greater than or equal to ((Facing of (Attacked unit)) + 90.00)
- (Facing of (Attacking unit)) Less than or equal to ((Facing of (Attacked unit)) - 90.00)
-
Then - Actions
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing TempReal damage of attack type Normal and damage type Normal
- Special Effect - Create a special effect attached to the chest of (Attacked unit) using Objects\Spawnmodels\Other\BeastmasterBlood\BeastmasterBlood.mdl
- Special Effect - Destroy (Last created special effect)
- Game - Display to (All players) the text: Right Direction
-
Else - Actions
- Game - Display to (All players) the text: Wrong Direction
-
If - Conditions
-
Events