Comment on page
ConsumeItem
Fires when an item is consumed.
-- Make a player jump twice as high every time they eat a pie item
Events.ConsumeItem(function(event)
if (event.item == ItemType.PIE) then
event.player:registerJumpHeightMultiplier("pie_jumps", 2)
end
end)
The player that consumed the item.
The item that was consumed by the player.
If set to true the item consume will be cancelled.
Last modified 2mo ago