I'd like to get a way to find the surfaces that are inside a building. I'm working on two mods (GCKI and Autodrive) that allow players to teleport vehicles based on "car" and "spider-vehicle" prototypes across surfaces. When vehicles are left behind on a Factorissimo surface, and a building containing those vehicles' surface dies, I'd like to do stuff (perhaps destroy all vehicles my mods have put there, or close camera views of such vehicles). Once I have a list of surfaces, it would be trivial to check if any of the vehicles stored by my mods are located there.
I guess both a remote function I could call when a Factorissimo building triggers on_entity_died or a custom event raised by you would work for my purposes. Could you provide that, please?