The answer seems to be no but I guess I'll ask anyway. Can I make the detection zone of Line-of-Sight face behind the object, or at an angle, to the object's orientation? I'd like to make an AI respond differently depending on what side of it another object is spotted.
Preferably I'd like to extend this to an entire family, so I was hoping to avoid container objects which provide extra LoS behaviors.
Develop games in your browser. Powerful, performant & highly capable.
You can simply rotate your object with LoS 90 or 180 degrees, check LoS, then rotate back, all in one tick.
when you mirror an object, it's LOS 0 angle turns with it, if thats helpful
Well I think I managed without lol
Turning the object itself might've worked, though it could've been a bit of a hassle because it has other LoS behaviors scanning for different things that don't necessarily extend to the sides and rear. Thanks for the tip though, might come in useful in the future.
If you rotate 90 degrees, check LoS and rotate back (all in one event), this will not interfere with any other LoS checks.