mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Debug
This commit is contained in:
parent
3f8468dcc7
commit
985282ba55
@ -2107,8 +2107,11 @@ do -- Players
|
|||||||
|
|
||||||
local PlayerNames = {}
|
local PlayerNames = {}
|
||||||
|
|
||||||
|
self:F({Group = self:GetName()})
|
||||||
|
|
||||||
local Units = self:GetUnits()
|
local Units = self:GetUnits()
|
||||||
for UnitID, UnitData in pairs( Units ) do
|
for UnitID, UnitData in pairs( Units ) do
|
||||||
|
self:F({UnitData:GetName()})
|
||||||
local Unit = UnitData -- Wrapper.Unit#UNIT
|
local Unit = UnitData -- Wrapper.Unit#UNIT
|
||||||
local PlayerName = Unit:GetPlayerName()
|
local PlayerName = Unit:GetPlayerName()
|
||||||
if PlayerName and PlayerName ~= "" then
|
if PlayerName and PlayerName ~= "" then
|
||||||
|
|||||||
@ -324,13 +324,16 @@ end
|
|||||||
-- @return #string Player Name
|
-- @return #string Player Name
|
||||||
-- @return #nil The DCS Unit is not existing or alive.
|
-- @return #nil The DCS Unit is not existing or alive.
|
||||||
function UNIT:GetPlayerName()
|
function UNIT:GetPlayerName()
|
||||||
self:F2( self.UnitName )
|
self:F( self.UnitName )
|
||||||
|
|
||||||
local DCSUnit = self:GetDCSObject() -- DCS#Unit
|
local DCSUnit = self:GetDCSObject() -- DCS#Unit
|
||||||
|
|
||||||
if DCSUnit then
|
if DCSUnit then
|
||||||
|
|
||||||
|
self:F({self:GetName()})
|
||||||
|
|
||||||
local PlayerName = DCSUnit:getPlayerName()
|
local PlayerName = DCSUnit:getPlayerName()
|
||||||
|
self:F({PlayerName = PlayerName})
|
||||||
-- TODO Workaround DCS-BUG-3 - https://github.com/FlightControl-Master/MOOSE/issues/696
|
-- TODO Workaround DCS-BUG-3 - https://github.com/FlightControl-Master/MOOSE/issues/696
|
||||||
-- if PlayerName == nil or PlayerName == "" then
|
-- if PlayerName == nil or PlayerName == "" then
|
||||||
-- local PlayerCategory = DCSUnit:getDesc().category
|
-- local PlayerCategory = DCSUnit:getDesc().category
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user