Checks wingman tasking every tick to make sure target is still alive

This commit is contained in:
Ambroise Garel 2025-07-26 19:45:00 +02:00
parent ead4911806
commit 3f9f07ade2

View File

@ -136,6 +136,8 @@ do
local nextTickTime = time + math.random(10, 20)
clockTick = clockTick + 1
TUM.wingmenTasking.onClockTick() -- No need to check the function return, it's just here to check if wingmen target is still alive
if clockTick % 4 == 0 then
if TUM.playerScore.onClockTick() then return nextTickTime end
if TUM.mission.onClockTick() then return nextTickTime end