on_pre_ghost_upgraded event

Post Reply
User avatar
_CodeGreen
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Sat Mar 05, 2022 11:30 am
Contact:

on_pre_ghost_upgraded event

Post by _CodeGreen »

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.
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

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: on_pre_ghost_upgraded event

Post by Rseding91 »

Ok, it's now added for the next release.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”