Using the following code, however:
Code: Select all
script.on_event(defines.events.on_built_entity, function(ev)
if ev.created_entity.name == "entity-ghost" then
print(tostring(ev.created_entity.built_by))
end
end)
Either add ghost_builty_by or have built_by support ghosts?
(This could be a bug, who knows)