ChangedItem
Gets called when the player has changed their held item.
Start a script section
!-- OnEvent ChangedItem
-- require @evPlayer *evOldItem *evNewItem
# Add your instructions here
- Group: PlayerEvents
- Cancellable: No
- Event data:
PlayerChangedItemEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who changed current item. |
*evOldItem | reference to Item object | Gets the old item which player changed. |
*evNewItem | reference to Item object | Gets the new item which player changed to. |