Picking Units With specific Facing angle

Dinowc

don't expect anything, prepare for everything
Reaction score
223
set angle1 = angle between position of Picked unit and position of Casting unit + 360.
set angle2 = Picked unit's Facing Angle + 360.
if angle1 + 10. > angle2 and angle1 - 10. < angle2 then
--UNIT IS FACING THE CASTER--

ignore the leaks
 

junicobakura

Member
Reaction score
3
set angle1 = angle between position of Picked unit and position of Casting unit + 360.
set angle2 = Picked unit's Facing Angle + 360.
if angle1 + 10. > angle2 and angle1 - 10. < angle2 then
--UNIT IS FACING THE CASTER--

ignore the leaks

are the +10 and the -10 the angle wideness?
 

DrEvil

FCRI Associate!
Reaction score
111
yes, which leads to a 20 degree angle for the unit to be facing :)
from -10 to +10 = 20
+10 is going counter-clockwise - left of the unit
-10 is going clockwise - right of the unit

so if he was blind in the left eye it would be from -10 to 0 ( theoretically :D )
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top