Use an item

Place to get help with not working mods / modding interface.
danshat
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Apr 21, 2017 4:33 pm
Contact:

Use an item

Post by danshat »

Hey guys. I am trying to do a mod where an item should be used (like grenades). It can be LMB click, RMB click, whatever. Actually, I am trying to make a tomato eatable. I though about placing a fake entity but I don't know how to do it. Do you have any ideas? There is no event in API which is using an item.
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2638
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Use an item

Post by steinio »

You can use the fish prototype what is like a grenade with negative damage.

Greetings steinio
Image

Transport Belt Repair Man

View unread Posts
danshat
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Apr 21, 2017 4:33 pm
Contact:

Re: Use an item

Post by danshat »

steinio wrote:You can use the fish prototype what is like a grenade with negative damage.
I need a script event. control.lua should understand when player uses an item. I am trying to change a variable with activation not heal a player.
Post Reply

Return to “Modding help”