builty_by for ghost entities (Bug?)

This subforum contains all the issues which we already resolved.
User avatar
DemiPixel
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Mon Mar 21, 2016 7:27 am
Contact:

builty_by for ghost entities (Bug?)

Post 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)
Rseding91
Factorio Staff
Factorio Staff
Posts: 14343
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: builty_by for ghost entities (Bug?)

Post by Rseding91 »

Fixed for 0.13.4.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”