If I revive a ghost, it seems that colliding entities are deconstructed and returned.
https://lua-api.factorio.com/latest/Lua ... ity.revive
I want to ask, if I can determine before reviving, if it would collide with any real entities, that would be deconstructed
Maybe something like: ghost.collides_with_other_real_entities
If was unable to find anything myself, so far, but I'm probably just blind.
Check, if a ghost collides with a real entity
Re: Check, if a ghost collides with a real entity
I think you might be misunderstanding what revive does. It won't mark anything for deconstruction when called.
This means any type="item-on-ground" entities that were in the way that it picks up off the ground as a result of reviving the entity. Those items never collide with built entities and are always picked up when something is built on top of them.Any items the new real entity collided with or nil if the ghost could not be revived.
If you want to get ahold of me I'm almost always on Discord.
Re: Check, if a ghost collides with a real entity
Yes, Indeed, I understood that wrong.Rseding91 wrote: ↑Fri Jan 13, 2023 5:42 pmI think you might be misunderstanding what revive does. It won't mark anything for deconstruction when called.
This means any type="item-on-ground" entities that were in the way that it picks up off the ground as a result of reviving the entity. Those items never collide with built entities and are always picked up when something is built on top of them.Any items the new real entity collided with or nil if the ghost could not be revived.
Items on the ground makes a lot more sense.
Thanks for clarifying.