Skip to main content

DroppingItem

Gets called when the player is dropping an item.

Start a script section

!-- OnEvent DroppingItem
-- require @evPlayer *evItem $evThrow $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is dropping the item.
*evItemreference to Item objectGets the item being dropped.
$evThrowbool valueGets or sets whether the Pickup will be thrown by the Player.
$evIsAllowedbool valueWhether the event is allowed to run.