SET - further event related stuff not working any more

AWACS - update
This commit is contained in:
Applevangelist
2022-05-04 18:10:20 +02:00
parent 21f93aa7e8
commit 290cc151bc
2 changed files with 32 additions and 29 deletions

View File

@@ -1369,7 +1369,11 @@ do -- SET_GROUP
if Event.IniDCSUnit then
local ObjectName, Object = self:FindInDatabase( Event )
if ObjectName then
if Event.IniDCSGroup:getSize() == 1 then -- Only remove if the last unit of the group was destroyed.
local size = 1
if Event.IniDCSGroup then
size = Event.IniDCSGroup:getSize()
end
if size == 1 then -- Only remove if the last unit of the group was destroyed.
self:Remove( ObjectName )
end
end