Page 1 of 1

Revert event

Posted: Tue Jul 17, 2018 5:38 pm
by TheThunderBirds
Is it possible to cancel or revert a triggered event? Im trying to create a mod where instead of picking up a building it gets marked for deconstruction. Marking isn't that difficult but not having the building deconstructed a lot more. I tried to respawn a copy of the building but then the player still receives the items and making sure that everything gets copied is a real pain.

Re: Revert event

Posted: Tue Jul 17, 2018 6:50 pm
by eradicator
TheThunderBirds wrote:Is it possible to cancel or revert a triggered event?
Nope.
I suppose you could mark entities as LuaEntity.minable = false (or in the prototypes) and use a custom hotkey to catch the right-click event.