How to access ghost entity

Place to get help with not working mods / modding interface.
evildogbot100
Fast Inserter
Fast Inserter
Posts: 155
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

How to access ghost entity

Post by evildogbot100 »

When an entity died, it creates a ghost assuming you have sufficient research. But there is no ghost attribute in on_entity_died event. Is there a way to access that ghost?
Rseding91
Factorio Staff
Factorio Staff
Posts: 16016
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How to access ghost entity

Post by Rseding91 »

The ghost doesn't exist at the point in time when the event is fired. It's created after.
If you want to get ahold of me I'm almost always on Discord.
evildogbot100
Fast Inserter
Fast Inserter
Posts: 155
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

Re: How to access ghost entity

Post by evildogbot100 »

So which event is responsible for the ghost creation?
Rseding91
Factorio Staff
Factorio Staff
Posts: 16016
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: How to access ghost entity

Post by Rseding91 »

evildogbot100 wrote:So which event is responsible for the ghost creation?
There is no event for the creation of a ghost from an entity that died.
If you want to get ahold of me I'm almost always on Discord.
evildogbot100
Fast Inserter
Fast Inserter
Posts: 155
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

Re: How to access ghost entity

Post by evildogbot100 »

Add that for 0.16?
Post Reply

Return to “Modding help”