One thing I came across while bug fixing one of my mods was the on_pre_ghost_deconstructed event, since ghosts can't be marked for deconstruction. This event saved my butt, and it was perfect for what I needed. However, ghosts can also be marked for upgrade, yet there is no on_pre_ghost_upgraded event.
I can't seem to find any other reasonable way to read the upgraded ghost and it's target entity/direction. This event would be another lifesaver, otherwise I need to resort to extreme levels of janky hacks to accomplish what I want to do.
on_pre_ghost_upgraded event
- _CodeGreen
- Long Handed Inserter
- Posts: 72
- Joined: Sat Mar 05, 2022 11:30 am
- Contact:
on_pre_ghost_upgraded event
Last edited by _CodeGreen on Wed Oct 12, 2022 7:18 am, edited 1 time in total.
My Mods | If you can't make it perfect, make it adjustable
Re: on_pre_ghost_upgraded event
Ok, it's now added for the next release.
If you want to get ahold of me I'm almost always on Discord.