Called before a ghost entity is upgraded.
player_index?: uint32 — The player that did the upgrade if any.ghost: LuaEntitytarget: LuaEntityPrototypequality: LuaQualityPrototypename: defines.events — Identifier of the eventtick: uint32 — Tick the event was generated.