Skip to main content

PickingUpItem

Gets called when the player is picking up an item.

Start a script section

!-- OnEvent PickingUpItem
-- require @evPlayer *evPickup $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who picked up the item.
*evPickupreference to Pickup objectGets the item pickup.
$evIsAllowedbool valueWhether the event is allowed to run.