This commit is contained in:
Frank
2020-09-02 00:05:05 +02:00
parent eb86d59203
commit 444cc43971
4 changed files with 91 additions and 28 deletions

View File

@@ -2543,11 +2543,17 @@ function FLIGHTGROUP:_InitGroup()
self.ammo=self:GetAmmoTot()
-- Radio parameters from template.
self.radio.On=self.template.communication
self.radio.Freq=self.template.frequency
self.radio.Modu=self.template.modulation
self.radio.Freq=tonumber(self.template.frequency)
self.radio.Modu=tonumber(self.template.modulation)
local on=tostring(self.template.communication):lower()
if on=="true" then
self.radio.On=true
else
self.radio.On=false
end
self.radioDefault=UTILS.DeepCopy(self.radio)
-- Set default radio.
self:SetDefaultRadio(self.radio.Freq, self.radio.Modu, self.radio.On)
--TODO callsign from template or getCallsign
self.callsign.NumberSquad=self.template.units[1].callsign[1]