Hey,
I want to iterate over entities inside a blueprint that just got placed (specifically, the entities that can have a recipe).
How can I access the ghost's contents via the event passed by on_built_entity?
Thanks a lot in advance!
Getting entities in a blueprint
Re: Getting entities in a blueprint
Code: Select all
local recipe = nil
if entity.ghost_type == "assembling-machine" then
recipe = entity.get_recipe()
end