Merge pull request #2219 from FlightControl-Master/Applevangelist-patch-1

Update Unit.lua
This commit is contained in:
Thomas 2025-01-11 10:14:44 +01:00 committed by GitHub
commit 30bedb39f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1777,6 +1777,7 @@ function UNIT:GetSTN()
local VCN = nil -- VoiceCallsignNumber local VCN = nil -- VoiceCallsignNumber
local FGL = false -- FlightGroupLeader local FGL = false -- FlightGroupLeader
local template = self:GetTemplate() local template = self:GetTemplate()
if template then
if template.AddPropAircraft then if template.AddPropAircraft then
if template.AddPropAircraft.STN_L16 then if template.AddPropAircraft.STN_L16 then
STN = template.AddPropAircraft.STN_L16 STN = template.AddPropAircraft.STN_L16
@ -1793,6 +1794,6 @@ function UNIT:GetSTN()
if template.datalinks and template.datalinks.SADL and template.datalinks.SADL.settings then if template.datalinks and template.datalinks.SADL and template.datalinks.SADL.settings then
FGL = template.datalinks.SADL.settings.flightLead FGL = template.datalinks.SADL.settings.flightLead
end end
end
return STN, VCL, VCN, FGL return STN, VCL, VCN, FGL
end end