• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Backstab

Status
Not open for further replies.
Level 19
Joined
Apr 25, 2006
Messages
1,309
I guess so.

------------------------------------
Even:Unit attacks/is attacked
Actions:
Set AngleRealVariable= min[Absolute value(angle of attacking unit - angle of attacked unit), Absolute value(angle of attacked unit - angle of attacking unit)]
If AngleRealVariable is less than *something* for example 90
then deal damage to attacked unit equal to something
else do nothing
------------------------------------

If AngleRealVariable is 0 it means the attacker is directly attacking from behind
 
Level 4
Joined
Jun 5, 2007
Messages
65
Remember, the part where the unit does damage to the other is the trigger damage + whatever initial damage there was from the attack. Also, the unit is attacked event may not work so well with ranged heroes, so you may want this only to be used with melee. Hope this helps. Good luck.
-Z
 
Status
Not open for further replies.
Top