Skip to main content

ThrowingProjectile

Gets called when the player is throwing a projectile.

Start a script section

!-- OnEvent ThrowingProjectile
-- require @evPlayer *evThrowableItem *evProjectileSettings $evFullForce $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerThrowingProjectileEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who threw the projectile.
*evThrowableItemreference to ThrowableItem objectGets the original throwable item.
*evProjectileSettingsreference to ProjectileSettings objectGets or sets the projectile settings at which is throwable being thrown.
$evFullForcebool valueGets or sets the value whenever the throwable was thrown at full force (overhand).
$evIsAllowedbool valueWhether the event is allowed to run.