deconstructible-tile-proxy

Place to get help with not working mods / modding interface.
Post Reply
NearlyDutch
Inserter
Inserter
Posts: 47
Joined: Tue Oct 20, 2015 12:56 pm
Contact:

deconstructible-tile-proxy

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13232
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: deconstructible-tile-proxy

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Modding help”