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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is searching for the pickup. |
*evPickup | reference to Pickup object | Gets the pickup being searched. |
$evIsAllowed | bool value | Whether the event is allowed to run. |