With vehicles only now leaving ghosts on death in 2.0, this part of the implementation seems to have been overlooked
on_post_entity_died event.ghost is nil for vehicles
- _CodeGreen
- Fast Inserter

- Posts: 100
- Joined: Sat Mar 05, 2022 11:30 am
- Contact:
on_post_entity_died event.ghost is nil for vehicles
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
With vehicles only now leaving ghosts on death in 2.0, this part of the implementation seems to have been overlooked
My Mods | If you can't make it perfect, make it adjustable
Re: on_post_entity_died event.ghost is nil for vehicles
Tested on 2.0.42. Cannot reproduce.
- _CodeGreen
- Fast Inserter

- Posts: 100
- Joined: Sat Mar 05, 2022 11:30 am
- Contact:
Re: on_post_entity_died event.ghost is nil for vehicles
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!
My Mods | If you can't make it perfect, make it adjustable
