[Request] onentityclick event

Post Reply
iUltimateLP
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Sun May 24, 2015 4:41 pm
Contact:

[Request] onentityclick event

Post by iUltimateLP »

So I tried to spawn an entity and when i click on that entity it should come up with a gui, but in the wiki i haven't found any event for this, e.g. game.onentityclick or something.
Is there something like this and I dont find it? If not, I would like to have it :D

Thanks!

jorgenRe
Filter Inserter
Filter Inserter
Posts: 535
Joined: Wed Apr 09, 2014 3:32 pm
Contact:

Re: [Request] onentityclick event

Post by jorgenRe »

Wha type of entity are you creating?
And what type of entity did you take as a template?
for example: type = "assembling-machine",
Logo
Noticed the told change in FFF #111 so il continue to use my signature ^_^
Thanks for listening to our suggestions, devs :D!
I would jump of joy if we could specify which tiles spawned in a surfaces

Programmdude
Burner Inserter
Burner Inserter
Posts: 17
Joined: Fri May 02, 2014 2:46 pm
Contact:

Re: [Request] onentityclick event

Post by Programmdude »

I attempted to do a similar thing, with the accumulator as a base.
DyTech had a workaround where it would add a button in the top left corner that was only visible near the required building, but that isn't as nice as an on entity click event.

luan
Manual Inserter
Manual Inserter
Posts: 4
Joined: Wed Dec 23, 2015 4:11 pm
Contact:

Re: [Request] onentityclick event

Post by luan »

Is there a way, as for now, to do this?
This seems to be really useful. I want to make a new type o "crafting", not based on any other. So I was going to try do it by hand removing items from player inv and giving the new item.
One very quirky workaround I learned with turret-range mod, is to make an item that allows you to access guis, but in the background what it does is: create an invisible entity to trigger on created, destroy it on the handler and get position to find other entity in the same place.
But it would be awesome to have simple custom guis for entities.

curiosity
Filter Inserter
Filter Inserter
Posts: 316
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: [Request] onentityclick event

Post by curiosity »

This should be moved to implemented requests. There's an event for opening the entity GUI, there are linked game controls. Any way I can see to interpret this thread has been implemented.

Post Reply

Return to “Implemented mod requests”