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
@@ -912,16 +912,16 @@ function CONTROLLABLE:TaskAttackUnit(AttackUnit, GroupAttack, WeaponExpend, Atta
DCSTask = {
id = 'AttackUnit',
params = {
unitId = AttackUnit:GetID(),
groupAttack = GroupAttack or false,
expend = WeaponExpend or "Auto",
unitId = AttackUnit:GetID(),
groupAttack = GroupAttack or false,
expend = WeaponExpend or "Auto",
directionEnabled = Direction and true or false,
direction = math.rad(Direction or 0),
altitudeEnabled = Altitude and true or false,
altitude = Altitude or math.max(1000, AttackUnit:GetAltitude()),
attackQtyLimit = AttackQty and true or false,
attackQty = AttackQty,
weaponType = WeaponType
direction = math.rad(Direction or 0),
altitudeEnabled = Altitude and true or false,
altitude = Altitude or math.max(1000, AttackUnit:GetAltitude()),
attackQtyLimit = AttackQty and true or false,
attackQty = AttackQty,
weaponType = WeaponType
}
}