Checks for object intersection with a virtual line between two positions.
Returns true if an object intersects.
Syntax:
begPos:
PositioASL
endPos:
PositioASL
objIgnore1: (optional)
Object - object to ignore. When testing intersection from an object/unit/vehicle, pass that object here to prevent intersection inside of the object.
objIgnore2: (optional)
Object - another object to ignore. When testing intersection of a line between two objects, pass the second object here to prevent interesection inside of it being reported
A thread for Line of sight example script using this command on our forums.