This commit is contained in:
Applevangelist
2024-09-30 11:36:19 +02:00
parent 52983bc5f1
commit 3d5dfc422d
4 changed files with 24 additions and 11 deletions

View File

@@ -492,13 +492,16 @@ function GROUP:Destroy( GenerateEvent, delay )
if GenerateEvent and GenerateEvent == true then
if self:IsAir() then
self:CreateEventCrash( timer.getTime(), UnitData )
--self:ScheduleOnce(1,self.CreateEventCrash,self,timer.getTime(),UnitData)
else
self:CreateEventDead( timer.getTime(), UnitData )
--self:ScheduleOnce(1,self.CreateEventDead,self,timer.getTime(),UnitData)
end
elseif GenerateEvent == false then
-- Do nothing!
else
self:CreateEventRemoveUnit( timer.getTime(), UnitData )
--self:ScheduleOnce(1,self.CreateEventRemoveUnit,self,timer.getTime(),UnitData)
end
end
USERFLAG:New( self:GetName() ):Set( 100 )