Page 1 of 1

[Closed] Map Editor entities-tab doesn't fire onMined/Death/ etc, please have it fire something

Posted: Fri Apr 15, 2022 3:35 pm
by bolderbrush10
The entities-tab in the map editor doesn't seem to fire any of the on_mined() / on_died() functions or anything when removing entities.

Please update the map editor to fire some kind of event when entities are removed, so mods can detect this and delete their hidden entities / etc as appropriate. I'd personally be okay if it was even an entirely new callback.

Re: Map Editor entities-tab doesn't fire onMined/Death/ etc, please have it fire something

Posted: Fri Apr 15, 2022 4:22 pm
by Rseding91

Re: Map Editor entities-tab doesn't fire onMined/Death/ etc, please have it fire something

Posted: Fri Apr 15, 2022 4:24 pm
by bolderbrush10
Ah. Yes, I think I can try that. Thank you.

Re: [Closed] Map Editor entities-tab doesn't fire onMined/Death/ etc, please have it fire something

Posted: Fri Apr 15, 2022 8:33 pm
by bolderbrush10
I did some testing and using LuaBootstrap.register_on_entity_destroyed() has worked for my situation.
I've marked this thread as closed, feel free to move it to 'Already Implemented' or wherever is appropriate.