Page 1 of 1

deconstructible-tile-proxy

Posted: Sun Jul 10, 2016 2:08 pm
by NearlyDutch
In the on_marked_for_deconstruction event, if a tile was marked, the given entity is of the type deconstructible-tile-proxy. Is there any way to get the name of the actual tile that was marked? For example, if a dropped item is marked you get an item-on-ground, but the name of the item itself is still inside the entity.stack.name property. Is there anything equivalent for the deconstructible-tile-proxy?

The current workaround I have is to check the tile at the entity's position on the entity's surface, but that's probably not the most CPU efficient way.

Re: deconstructible-tile-proxy

Posted: Sun Jul 10, 2016 3:39 pm
by Rseding91
NearlyDutch wrote:The current workaround I have is to check the tile at the entity's position on the entity's surface, but that's probably not the most CPU efficient way.
That's the only way to do it. That's how the game does it.