ItemUsageEffectsApplying
Gets called when the player is about to complete using an item.
Start a script section
!-- OnEvent ItemUsageEffectsApplying
-- require @evPlayer *evUsableItem $evContinueProcess $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerItemUsageEffectsApplyingEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player using the item. |
*evUsableItem | reference to UsableItem object | Gets the item that is being used. |
$evContinueProcess | bool value | Get or sets whether or not to continue the using item process when the event is canceled. |
$evIsAllowed | bool value | Whether the event is allowed to run. |