Page 1 of 1

on_post_entity_died event.ghost is nil for vehicles

Posted: Wed Mar 26, 2025 2:43 am
by _CodeGreen
As the title says, the event has a field for ghosts yet it is not populated for vehicles.
With vehicles only now leaving ghosts on death in 2.0, this part of the implementation seems to have been overlooked :P

Re: on_post_entity_died event.ghost is nil for vehicles

Posted: Wed Mar 26, 2025 7:12 am
by boskid
Tested on 2.0.42. Cannot reproduce.
03-26-2025, 08-12-07.png
03-26-2025, 08-12-07.png (157.08 KiB) Viewed 215 times

Re: on_post_entity_died event.ghost is nil for vehicles

Posted: Wed Mar 26, 2025 12:00 pm
by _CodeGreen
I tried more than once and wasn't able to get it to work, but for some reason today it's perfectly fine. I'm guessing I was miraculously being an idiot and not using /cheat (thus the ghost wasn't spawning) every single time I tested reading the field, even though that's something I was frequently doing while testing the mod I was working on. Sorry about that!