CancellingUsingItem
Gets called when the player is cancelling the use of an item.
Start a script section
!-- OnEvent CancellingUsingItem
-- require @evPlayer *evUsableItem $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerCancellingUsingItemEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is cancelling using the item. |
*evUsableItem | reference to UsableItem object | Gets the item which the player cancels using. |
$evIsAllowed | bool value | Whether the event is allowed to run. |