Page 1 of 1
[solved] Detect Ghosts before building
Posted: Thu Jan 08, 2026 12:06 pm
by yaim904
Hello, how are you?
How is the new year going?
I just thought of something, but for that, I need to know if the entity is being built because there was previously a ghost or if it is being built without the ghost.
Re: Detect Ghosts before building.
Posted: Fri Jan 09, 2026 3:17 pm
by Osmo
You will get a ghost mined event before entity built event i think. Also, robots and platforms always build because of a ghost.
Re: Detect Ghosts before building.
Posted: Fri Jan 09, 2026 7:24 pm
by Natha
If the ghost has tags set, you will find them in the event data
Re: Detect Ghosts before building.
Posted: Fri Jan 09, 2026 8:35 pm
by yaim904
Osmo wrote: Fri Jan 09, 2026 3:17 pm
It's a good idea, and if the creation of the ghost is recorded but not when it is built.
What I have in mind is the following:
When a Loader is built without a ghost, verify a code (I already have that code).
When a Loader is built with a ghost, ignore the code.
What I'm trying to do is find a way to know if the Loader has a ghost or not.
I will think about it.
Natha wrote: Fri Jan 09, 2026 7:24 pm
Re: Detect Ghosts before building.
Posted: Sat Jan 10, 2026 11:45 am
by yaim904
Natha wrote: Fri Jan 09, 2026 7:24 pm
I did some tests, and it works.
Thank you very much.