[script command request] hasLOS
Don't know if this were asked or suggested before, a search didn't found anything in suggestions Forum.
I would request a new scripting command:
This would return either true or false if obj1 has a free line-of-sight to obj2. Means no hills, buildings, trees or anything else between them.
bool = obj1 hasLOS obj2;
I wouldn't state it as "easy to implement" as i don't know how much effort from developers side it would take. At least i'm pretty sure it is doable since the basic routine must be already in there. The Vehicle radar does make use of this routine.
I know it can be done with a lot of fancy scripting but those solutions are complicated at first and i also guess not pretty performance friendly, especially if multiple objects has to be checked at the same time.