This commit is contained in:
Frank
2019-11-03 15:38:22 +01:00
parent 3b58e1f127
commit 05b87659f4
2 changed files with 12 additions and 9 deletions
@@ -1643,6 +1643,9 @@ function FLIGHTGROUP:onafterTaskExecute(From, Event, To, Task)
-- Combo task. -- Combo task.
local TaskCombo=self.group:TaskCombo(DCStasks) local TaskCombo=self.group:TaskCombo(DCStasks)
env.info("FF executing Taskcombo:")
self:I({task=TaskCombo})
-- Set task for group. -- Set task for group.
self.group:SetTask(TaskCombo) self.group:SetTask(TaskCombo)
@@ -912,16 +912,16 @@ function CONTROLLABLE:TaskAttackUnit(AttackUnit, GroupAttack, WeaponExpend, Atta
DCSTask = { DCSTask = {
id = 'AttackUnit', id = 'AttackUnit',
params = { params = {
unitId = AttackUnit:GetID(), unitId = AttackUnit:GetID(),
groupAttack = GroupAttack or false, groupAttack = GroupAttack or false,
expend = WeaponExpend or "Auto", expend = WeaponExpend or "Auto",
directionEnabled = Direction and true or false, directionEnabled = Direction and true or false,
direction = math.rad(Direction or 0), direction = math.rad(Direction or 0),
altitudeEnabled = Altitude and true or false, altitudeEnabled = Altitude and true or false,
altitude = Altitude or math.max(1000, AttackUnit:GetAltitude()), altitude = Altitude or math.max(1000, AttackUnit:GetAltitude()),
attackQtyLimit = AttackQty and true or false, attackQtyLimit = AttackQty and true or false,
attackQty = AttackQty, attackQty = AttackQty,
weaponType = WeaponType weaponType = WeaponType
} }
} }