Some fixes to make the SpawnScheduled work again

This commit is contained in:
Applevangelist
2022-05-04 09:51:36 +02:00
parent c6da6544da
commit 04c77e9760
4 changed files with 28 additions and 8 deletions

View File

@@ -813,13 +813,14 @@ end
-- @param #BASE self
-- @param DCS#Time EventTime The time stamp of the event.
-- @param DCS#Object Initiator The initiating object of the event.
function BASE:CreateEventDead( EventTime, Initiator )
self:F( { EventTime, Initiator } )
function BASE:CreateEventDead( EventTime, Initiator, IniObjectCategory )
self:F( { EventTime, Initiator, IniObjectCategory } )
local Event = {
id = world.event.S_EVENT_DEAD,
time = EventTime,
initiator = Initiator,
IniObjectCategory = IniObjectCategory,
}
world.onEvent( Event )