This commit is contained in:
Sven Van de Velde
2016-05-13 12:46:08 +02:00
parent 6dd4bc638e
commit d1b3de1940
11 changed files with 1283 additions and 579 deletions

View File

@@ -96,7 +96,14 @@ end
function UNIT:GetPlayerName()
self:F( self.UnitName )
return self.DCSUnit:getPlayerName()
local DCSUnit = Unit.getByName( self.UnitName )
local PlayerName = DCSUnit:getPlayerName()
if PlayerName == nil then
PlayerName = ""
end
return PlayerName
end
function UNIT:GetTypeName()
self:F( self.UnitName )