• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Backstab

Status
Not open for further replies.
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
 
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.
Back
Top