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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is dropping the item. |
*evItem | reference to Item object | Gets the item being dropped. |
$evThrow | bool value | Gets or sets whether the Pickup will be thrown by the Player. |
$evIsAllowed | bool value | Whether the event is allowed to run. |