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