Page 1 of 1
Use an item
Posted: Fri Apr 21, 2017 4:38 pm
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.
Re: Use an item
Posted: Fri Apr 21, 2017 4:45 pm
by steinio
You can use the fish prototype what is like a grenade with negative damage.
Greetings steinio
Re: Use an item
Posted: Fri Apr 21, 2017 5:00 pm
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.