Skip to main content

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

VariableTypeDescription
@evPlayerplayer valueGets the player who is throwing the item.
*evPickupreference to Pickup objectGets the Pickup that is being thrown.
*evRigidbodyreference to Rigidbody objectGets the rigidbody of the item.
$evIsAllowedbool valueWhether the event is allowed to run.