mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Dynamic Slots - fixes for #GROUP, #UNIT, #CSAR and #CTLD
This commit is contained in:
@@ -447,7 +447,14 @@ function UNIT:IsPlayer()
|
||||
-- Units of template group.
|
||||
local template = group:GetTemplate()
|
||||
|
||||
if (template == nil) or (template.units == nil ) then return false end
|
||||
if (template == nil) or (template.units == nil ) then
|
||||
local DCSObject = self:GetDCSObject()
|
||||
if DCSObject then
|
||||
if DCSObject:getPlayerName() ~= nil then return true else return false end
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
local units=template.units
|
||||
|
||||
|
||||
Reference in New Issue
Block a user