Page 1 of 1

Is there no separate event for entity clicks?

Posted: Sun Oct 19, 2025 8:47 am
by Xeon257
I’m trying to make an NPC dialogue window appear when a certain entity is clicked. However, it seems there’s no specific event for entity clicks. Is there any good way to achieve this?

Re: Is there no separate event for entity clicks?

Posted: Sun Oct 19, 2025 10:08 am
by Natha

Re: Is there no separate event for entity clicks?

Posted: Sun Oct 19, 2025 10:39 am
by Osmo
Also https://lua-api.factorio.com/latest/eve ... InputEvent if you create a CustomInput linked to open-gui and read player.selected (which can work for entities out of reach and/or ones that can't have a gui)