Skip to main content

UsedItem

Gets called when the player has used an item.

Start a script sectionโ€‹

!-- OnEvent UsedItem
-- require @evPlayer *evUsableItem

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerUsedItemEventArgs

Injected variablesโ€‹

VariableTypeDescription
@evPlayerplayer valueGets the player that used the item.
*evUsableItemreference to UsableItem objectGets the item that was used.

Validated examples using this eventโ€‹