AIRBOSS v0.9.1

This commit is contained in:
Frank
2019-01-23 11:00:36 +01:00
parent dd15da28b2
commit 265d6da331
5 changed files with 693 additions and 366 deletions
+12 -1
View File
@@ -651,6 +651,17 @@ function RESCUEHELO:GetAlias()
return self.alias
end
--- Get unit name of the spawned helo.
-- @param #RESCUEHELO self
-- @return #string Name of the helo unit or nil if it does not exist.
function RESCUEHELO:GetUnitName()
local unit=self.helo:GetUnit(1)
if unit then
return unit:GetName()
end
return nil
end
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- EVENT functions
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -909,7 +920,7 @@ function RESCUEHELO:onafterStatus(From, Event, To)
-- Report current fuel.
local text=string.format("Rescue Helo %s: state=%s fuel=%.1f", self.helo:GetName(), self:GetState(), fuel)
MESSAGE:New(text, 10, "DEBUG"):ToAllIf(self.Debug)
self:E(self.lid..text)
self:T(self.lid..text)
if self:IsRunning() then