• 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.

How detect a unit is in front of you or in your back ?

Status
Not open for further replies.
Level 5
Joined
Mar 7, 2009
Messages
65
I'm trying to create different mini-game, and i can't find how to easily see if the enemy that is attacking you is attacking you in you'r back or in front of you (for example, to create a "backstab" ability, or a "parry attack in front of you" ability.)

I didn't find any easy way to do it, i tried to do maths between angle of each units but it's not a good idea.

Thanks.
 
Status
Not open for further replies.
Top