From bec9f26fa06045aaf408b04ae45e31551289f43c Mon Sep 17 00:00:00 2001 From: Ambroise Garel <47314805+akaAgar@users.noreply.github.com> Date: Mon, 28 Jul 2025 11:03:22 +0200 Subject: [PATCH] Fixed bug with interception objectives not validating --- Script/The Universal Mission/Objectives.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Script/The Universal Mission/Objectives.lua b/Script/The Universal Mission/Objectives.lua index fdf1a71..d0d5914 100644 --- a/Script/The Universal Mission/Objectives.lua +++ b/Script/The Universal Mission/Objectives.lua @@ -171,13 +171,12 @@ do if index < 1 or index > #objectives then return end -- Out of bounds if objectives[index].completed then return end -- Objective already completed - if event.id ~= world.event.S_EVENT_DEAD then return end + if event.id ~= world.event.S_EVENT_DEAD and event.id ~= world.event.S_EVENT_UNIT_LOST then return end if not event.initiator then return end if objectives[index].isSceneryTarget then if Object.getCategory(event.initiator) == Object.Category.SCENERY then if DCSEx.math.isSamePoint(event.initiator:getPoint(), objectives[index].point3) then - -- markObjectiveAsComplete(index) timer.scheduleFunction(markObjectiveAsComplete, index, timer.getTime() + 3) end end