Skip to main content

CancellingUsingItem

Gets called when the player is cancelling the use of an item.

Start a script section

!-- OnEvent CancellingUsingItem
-- require @evPlayer *evUsableItem $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerCancellingUsingItemEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is cancelling using the item.
*evUsableItemreference to UsableItem objectGets the item which the player cancels using.
$evIsAllowedbool valueWhether the event is allowed to run.