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