mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
27cc4ed7c0
commit
1f6ce7ff81
@ -27,13 +27,14 @@ GVAR(tagsToTest) = GVAR(tagsToTest) select {
|
|||||||
private _intersections = lineIntersectsSurfaces [_tagPosASL, _endPosASL, _tag, objNull, true, 1, "GEOM", "FIRE"];
|
private _intersections = lineIntersectsSurfaces [_tagPosASL, _endPosASL, _tag, objNull, true, 1, "GEOM", "FIRE"];
|
||||||
|
|
||||||
// If there's no intersections
|
// If there's no intersections
|
||||||
if (_intersections isEqualTo []) exitWith {
|
if (_intersections isEqualTo []) then {
|
||||||
TRACE_1("No intersections, deleting:",_tag);
|
TRACE_1("No intersections, deleting:",_tag);
|
||||||
deleteVehicle _tag;
|
deleteVehicle _tag;
|
||||||
false
|
false
|
||||||
};
|
} else {
|
||||||
true
|
true
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
// If there's no more tag
|
// If there's no more tag
|
||||||
if (GVAR(tagsToTest) isEqualTo []) exitWith {
|
if (GVAR(tagsToTest) isEqualTo []) exitWith {
|
||||||
|
Loading…
Reference in New Issue
Block a user