ThrowingItem
Gets called when the player is throwing an item.
Start a script section
!-- OnEvent ThrowingItem
-- require @evPlayer *evPickup *evRigidbody $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerThrowingItemEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is throwing the item. |
*evPickup | reference to Pickup object | Gets the Pickup that is being thrown. |
*evRigidbody | reference to Rigidbody object | Gets the rigidbody of the item. |
$evIsAllowed | bool value | Whether the event is allowed to run. |