Event for trying to place a blueprint.
Posted: Fri Oct 21, 2022 1:02 pm
I want to make a mod that automatically places ghost entities in a blueprint placed on water after landfill has been placed or automatically replaces the blueprint once landfill is build.
To do this I need an event to detect when there is an attempt to place a blueprint, this event needs to give me:
1. the blueprint that was attempted to be placed
2. where it was supposed to be placed
3. If the blueprint was placed sucefully or if anything was blocking it, if something was blocking I need to know what it's blocked by (water, other buildings, ...)
Ideally i'd also like to get info, that info isn't required for what I need but would allow me to make some things nice(making it easier to for example place dummy entitys on the water instead of just reapllying the blueprint repeatably)
4. Entitles Placed by the blueprint
5. Blocked Entitles and what blocked them.
Alternativly an event that get's raised when you try to build something (even if it fails) and tells you want you were trying to build, where you where trying to build it and why it got blocked would also work.
To do this I need an event to detect when there is an attempt to place a blueprint, this event needs to give me:
1. the blueprint that was attempted to be placed
2. where it was supposed to be placed
3. If the blueprint was placed sucefully or if anything was blocking it, if something was blocking I need to know what it's blocked by (water, other buildings, ...)
Ideally i'd also like to get info, that info isn't required for what I need but would allow me to make some things nice(making it easier to for example place dummy entitys on the water instead of just reapllying the blueprint repeatably)
4. Entitles Placed by the blueprint
5. Blocked Entitles and what blocked them.
Alternativly an event that get's raised when you try to build something (even if it fails) and tells you want you were trying to build, where you where trying to build it and why it got blocked would also work.