builty_by for ghost entities (Bug?)
Posted: Fri Jul 01, 2016 1:11 am
When hovering over a ghost in 0.13, it will show that it was built by a user.
Using the following code, however:
returns nil.
Either add ghost_builty_by or have built_by support ghosts?
(This could be a bug, who knows)
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)