Skip to main content

SearchingPickup

Gets called when the player is searching a pickup.

Start a script section

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

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is searching for the pickup.
*evPickupreference to Pickup objectGets the pickup being searched.
$evIsAllowedbool valueWhether the event is allowed to run.