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
Thanks!
[Request] onentityclick event
-
- Long Handed Inserter
- Posts: 66
- Joined: Sun May 24, 2015 4:41 pm
- Contact:
Re: [Request] onentityclick event
Wha type of entity are you creating?
And what type of entity did you take as a template?
for example: type = "assembling-machine",
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 !
I would jump of joy if we could specify which tiles spawned in a surfaces
-
- Burner Inserter
- Posts: 17
- Joined: Fri May 02, 2014 2:46 pm
- Contact:
Re: [Request] onentityclick event
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.
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.
Re: [Request] onentityclick event
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.
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.
Re: [Request] onentityclick event
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.