Page 1 of 1

builty_by for ghost entities (Bug?)

Posted: Fri Jul 01, 2016 1:11 am
by DemiPixel
When hovering over a ghost in 0.13, it will show that it was built by a user.

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)
returns nil.

Either add ghost_builty_by or have built_by support ghosts?

(This could be a bug, who knows)

Re: builty_by for ghost entities (Bug?)

Posted: Fri Jul 01, 2016 10:39 pm
by Rseding91
Fixed for 0.13.4.