Need on_entity_click

Place to get help with not working mods / modding interface.
osldgoth
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Feb 26, 2015 3:52 am
Contact:

Need on_entity_click

Post by osldgoth »

Similar to how the repair pack can apply an effect to damaged buildings (entities) (I am unsure how this is done), I would like an item that I can use on entities which will apply an effect of my creation. Yet I can not seem to be able to do this with the 0.13.17 defined events. My only other option is to make my item an entity so I can use on_built_entity. Am I missing something or should I just make the entity?
Supercheese
Filter Inserter
Filter Inserter
Posts: 841
Joined: Mon Sep 14, 2015 7:40 am
Contact:

Re: Need on_entity_click

Post by Supercheese »

osldgoth wrote:Similar to how the repair pack can apply an effect to damaged buildings (entities) (I am unsure how this is done), I would like an item that I can use on entities which will apply an effect of my creation. Yet I can not seem to be able to do this with the 0.13.17 defined events. My only other option is to make my item an entity so I can use on_built_entity. Am I missing something or should I just make the entity?
You can use on_put_item.

For example: https://github.com/Suprcheese/Orbital-I ... #L390-L403
osldgoth
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Feb 26, 2015 3:52 am
Contact:

Re: Need on_entity_click

Post by osldgoth »

oh, yes that is a way to do it. I don't know how I didn't see that. I should be able to do something similar for my needs. thanks
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Need on_entity_click

Post by aubergine18 »

You've just solved a road block I was having in one of my in-development mods. Thanks Supercheese!
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Supercheese
Filter Inserter
Filter Inserter
Posts: 841
Joined: Mon Sep 14, 2015 7:40 am
Contact:

Re: Need on_entity_click

Post by Supercheese »

aubergine18 wrote:You've just solved a road block I was having in one of my in-development mods. Thanks Supercheese!
You're most welcome. :)
Post Reply

Return to “Modding help”