Hello,
I'm looking to create a mod where, when placing a blueprint, if there are entity or tile collisions, it will deconstruct what is existing there first. I know it is easy to deconstruct first manually; so it's obviously low-priority, but just a very mild QoL sort of change.
However, when playing around with the `on_*` events (actually, I created a handler for every one listed in the API to check), no event is raised when attempting to build a blueprint where it intersects (it shows the "<entity> is in the way" floating message on the screen briefly, unless shift is held in which case it shows nothing but does not build).
on_pre_build could have an additional status of "is_buildable" or an entirely different event, on_pre_build_collision or something would avoid causing issues with any existing on_pre_build usage.
Thanks for the excellent game!
on_pre_build event, but when unable to build
Re: on_pre_build event, but when unable to build
I need this (or something similar), I want to make a mod that automatically places ghosts of buildings on landfill, once the landfill has been build. To do that I need a way to detect when you try and fail to place an entity, including information about what you where trying to place including things like filters and stuff, why it failed to place and where it should have been placed. Maybe something like on_try_build?
Re: on_pre_build event, but when unable to build
I will add I kinda have been wanting something similar hence this post here: viewtopic.php?f=28&t=103637
Re: on_pre_build event, but when unable to build
If you want to get ahold of me I'm almost always on Discord.