This commit is contained in:
Applevangelist
2024-09-06 13:40:27 +02:00
parent d6adcdf8bd
commit f00d0dc871
4 changed files with 14 additions and 8 deletions

View File

@@ -14678,7 +14678,7 @@ function AIRBOSS:_GetPlayerUnitAndName( _unitName )
-- Get DCS unit from its name.
local DCSunit = Unit.getByName( _unitName )
if DCSunit then
if DCSunit and DCSunit.getPlayerName then
-- Get player name if any.
local playername = DCSunit:getPlayerName()