[modding] Blueprint stamp down event

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

User avatar
SunBlade
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jan 15, 2018 8:27 am
Contact:

[modding] Blueprint stamp down event

Post by SunBlade »

TL;DR
Please add an event which gets fired when the Player stamps down a Blueprint.
What?
Most mods use very convoluted ways to give their modded entities special behaviours/configurations.
It would be nice to have a way to detect if the Player wants to change the behaviour/configuration of our modded entity via blueprinting.
Since we can hook the blueprint creation event and get a source entity to blueprint record mapping we can put our modded config into storage.
Now we just need a hookable event that allows us to detect when the Player stamps down that blueprint with a mapping of blueprint record to destination entity.
Why?
i tried creating a linked-container which gets a unique link_id every time when placed. And the player can only change the link_id via blueprinting or copy&paste
with gui_mode="none" the link_id can no longer be changed by the Player, but blueprinting and copy&paste also no longer work.
Since i can hook the copy&paste event, transferring the link_id via script is easy. But we have nothing of the sort for blueprints.
Currently i can only hook the entity placement event and extract the link_id from the held blueprint.
But this only works for newly placed entities, we currently can not detect when the Player stamps a new config over existing entities.
Live your life, you got only one.
Post Reply

Return to “Ideas and Suggestions”