Check if a unit is facing another unit

Leazy

You can change this now in User CP.
Reaction score
50

jonas

You can change this now in User CP.
Reaction score
67
first it computes the angle between the two, then it uses the fact that cos is 1 for 0 degrees and gets less until 180 degrees in either way. I guess 0.766 is the cos corresponding to 45 degrees or whatever.

It avoids having to think about modulo computations.
 

Leazy

You can change this now in User CP.
Reaction score
50
All right. However, I can't find this option in the trigger list "Sector facing"
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top