- Joined
- Jul 3, 2011
- Messages
- 251
Hey guys, got a quick question which i am unsure of, how can i check if a unit is within say 60 angle range of another units facing angle? My problem is that if i were to get the units facing angle and have 2 reals for the angle +30 and angle -30, what if one of those angles go below 0.00 or above 360.00? The reason i am asking is for an ability like backstab in DotA from rikimaru (For those of you that dont know it, if riki is facing the back of a unit, he does additional damage, but if he isnt nothing happens) however i need the check to be precise without angle errors. Rep for any help.