Track
This commit is contained in:
Frank
2023-06-21 22:00:04 +02:00
parent f28d92e865
commit 0e72717cdb
2 changed files with 49 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ FLIGHTGROUP = {
playerWarnings = {},
prohibitAB = false,
jettisonEmptyTanks = true,
jettisonWeapons = true, -- that's actually a negative option like prohibitAB
jettisonWeapons = true, -- that's actually a negative option like prohibitAB
}
@@ -1202,6 +1202,36 @@ function FLIGHTGROUP:Status()
end
---
-- Track flight
---
if false then
for _,_element in pairs(self.elements) do
local element=_element --Ops.OpsGroup#OPSGROUP.Element
local unit=element.unit
if unit and unit:IsAlive() then
local vec3=unit:GetVec3()
if vec3 and element.pos then
local id=UTILS.GetMarkID()
trigger.action.lineToAll(-1, id, vec3, element.pos, {1,1,1,0.5}, 1)
end
element.pos=vec3
end
end
end
---
-- Fuel State
---