Code: Select all
version "3.3"
Class Event : EventHandler
{
override void WorldThingDestroyed(WorldEvent e)
{
let Item = Inventory(e.Thing);
If (Item)
Console.Printf("Yes, I am an item!");
}
}
I replaced "Inventory" with "Actor", but the same thing happened.
I also checked "WorldThingDied", however, there it seems to work normally.
Attached is a PK3 with the Event and the GameInfo to load it for easy testing.
Tested with GZDoom g3.4pre-360-gd639e07 x64
