From 76d29d02d4924d4560df4e693b4a1b6255f7859e Mon Sep 17 00:00:00 2001 From: Ambroise Garel <47314805+akaAgar@users.noreply.github.com> Date: Fri, 25 Jul 2025 19:43:00 +0200 Subject: [PATCH] Added regular automatic contact report from wingmen --- Script/The Universal Mission/Wingmen.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Script/The Universal Mission/Wingmen.lua b/Script/The Universal Mission/Wingmen.lua index 7dad72c..f848c9b 100644 --- a/Script/The Universal Mission/Wingmen.lua +++ b/Script/The Universal Mission/Wingmen.lua @@ -6,10 +6,12 @@ TUM.wingmen = {} do + local CONTACT_REPORT_INTERVAL = 8 -- Called AT MOST every 15 seconds, so 6 means "AT MOST every two minutes" local DEFAULT_PAYLOAD = "attack" -- Default payload local knownGroupsID = {} local newGroupsID = {} + local ticksLeftBeforeContactReport = CONTACT_REPORT_INTERVAL local wingmenGroupID = nil local wingmenUnitID = {} @@ -92,6 +94,7 @@ do -- Reinitialize list of known contacts and contact report interval knownGroupsID = {} newGroupsID = {} + ticksLeftBeforeContactReport = CONTACT_REPORT_INTERVAL TUM.log("Spawned AI wingmen") @@ -269,7 +272,10 @@ do return true end - return false + ticksLeftBeforeContactReport = ticksLeftBeforeContactReport - 1 + if ticksLeftBeforeContactReport > 0 then return false end + + return TUM.wingmenTasking.commandReportContacts(nil, true, false) end -------------------------------------