mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-20 07:43:07 +00:00
FG
This commit is contained in:
@@ -1642,6 +1642,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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user