From 970f567edfe6295a6e741722f78c675b1637e1d7 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 8 Mar 2026 13:14:01 +0100 Subject: [PATCH] Update Auftrag.lua - Added `AUFTRAG:SetEngageQuantity` --- Moose Development/Moose/Ops/Auftrag.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Moose Development/Moose/Ops/Auftrag.lua b/Moose Development/Moose/Ops/Auftrag.lua index 73e3d7ff0..ad5002038 100644 --- a/Moose Development/Moose/Ops/Auftrag.lua +++ b/Moose Development/Moose/Ops/Auftrag.lua @@ -3351,6 +3351,20 @@ function AUFTRAG:SetEngageAltitude(Altitude) return self end +--- Set engage quantity. This is the number of times the attack group/unit DCS task is carried out. +-- @param #AUFTRAG self +-- @param #number Quantity (Optional) Number of times the group will engage the target. +-- @return #AUFTRAG self +function AUFTRAG:SetEngageQuantity(Quantity) + + self.engageQuantity=Quantity + + -- Update the DCS task parameter. + self.DCStask=self:GetDCSMissionTask() + + return self +end + --- Enable to automatically engage detected targets. -- @param #AUFTRAG self -- @param #number RangeMax (Optional) Max range in NM. Only detected targets within this radius from the group will be engaged. Default is 25 NM.