This commit is contained in:
Frank
2021-07-14 21:00:34 +02:00
parent a2f3bf3a8c
commit 835041e5f6
6 changed files with 190 additions and 131 deletions

View File

@@ -693,16 +693,19 @@ function NAVYGROUP:onafterSpawned(From, Event, To)
else
self:SetDefaultRadio(self.radio.Freq, self.radio.Modu, false)
end
-- Update route.
if #self.waypoints>1 then
self:Cruise()
else
self:FullStop()
end
-- Update status.
self:__Status(-0.1)
end
-- Update route.
if #self.waypoints>1 then
self:Cruise()
else
self:FullStop()
end
end
--- On before "UpdateRoute" event.
@@ -1132,7 +1135,7 @@ function NAVYGROUP:_InitGroup()
-- First check if group was already initialized.
if self.groupinitialized then
self:E(self.lid.."WARNING: Group was already initialized!")
self:T(self.lid.."WARNING: Group was already initialized! Will NOT do it again!")
return
end
@@ -1197,7 +1200,7 @@ function NAVYGROUP:_InitGroup()
self.actype=units[1]:GetTypeName()
-- Debug info.
if self.verbose>=0 then
if self.verbose>=1 then
local text=string.format("Initialized Navy Group %s:\n", self.groupname)
text=text..string.format("Unit type = %s\n", self.actype)
text=text..string.format("Speed max = %.1f Knots\n", UTILS.KmphToKnots(self.speedMax))