Returns objects intersecting with the virtual line from begPos to endPos.
Syntax:
begPos:
PositionASL
endPos:
PositionASL
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
sortByDist: (optional)
Boolean - sort intersecting objects by distance
_objs = [[getPosASL cone1 select 0,getPosASL cone1 select 1,(getPosASL cone1 select 2)+1], [getPosASL cone2 select 0,getPosASL cone2 select 1,(getPosASL cone2 select 2)+1], cone1, cone2];
if (car1 in _objs) then {hint "car1 between roadcones"};