Linking a food to a script?

Post Reply
Enko
Posts: 7
Joined: Wed Dec 03, 2014 5:24 am

Linking a food to a script?

Post by Enko » Thu Aug 27, 2015 10:28 am

Just something I am playing with, is there a way to have consuming a particular food link to a custom Lua script?

User avatar
kjLotus
Lead Developer
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Linking a food to a script?

Post by kjLotus » Thu Aug 27, 2015 10:14 pm

every food goes to onItemUse in the foods script file, just like any other usable item

User avatar
tabitaru
Posts: 99
Joined: Sun Apr 12, 2015 4:49 am

Re: Linking a food to a script?

Post by tabitaru » Fri Aug 28, 2015 12:26 am

!

Post Reply