Placing parameterized blueprint programmatically

Place to get help with not working mods / modding interface.
zysnarch
Burner Inserter
Burner Inserter
Posts: 13
Joined: Thu Jan 10, 2019 4:26 am
Contact:

Placing parameterized blueprint programmatically

Post by zysnarch »

We have LuaRecord.build_blueprint() to place a blueprint via code. For a blueprint that contain parameters, is there any way to apply values for the free ones?
Ideally it would automatically configure dependent parameters as well, but I suppose if there's a manual way for me to do that, it would suffice. I'm talking about a scripting version of this dialog:
07-13-2026, 14-53-25.png
07-13-2026, 14-53-25.png (103.18 KiB) Viewed 95 times
something like:

Code: Select all

player.cursor_record.build_blueprint(
  parameters = { "parameter-0" = "beacon", "Request amount" = "50" }, 
  ...)
Post Reply

Return to “Modding help”