Search the Community
Showing results for tags 'give'.
Found 1 result
I was wanting to have an food item, that upon being eaten, gives the player an object This is what I am working with, but nothing happens. local function OnEaten(inst, eater) inst.components.inventory:GiveItem(GLOBAL.SpawnPrefab("drupe")) end And, I would prefer that it only works if the eater is a player, so that if another mob eats the food, they don't get the item.