Skip to main content

ItemUsageEffectsApplying

Gets called when the player is about to complete using an item.

Start a script section

!-- OnEvent ItemUsageEffectsApplying
-- require @evPlayer *evUsableItem $evContinueProcess $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player using the item.
*evUsableItemreference to UsableItem objectGets the item that is being used.
$evContinueProcessbool valueGet or sets whether or not to continue the using item process when the event is canceled.
$evIsAllowedbool valueWhether the event is allowed to run.