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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who threw the projectile. |
*evThrowableItem | reference to ThrowableItem object | Gets the original throwable item. |
*evProjectileSettings | reference to ProjectileSettings object | Gets or sets the projectile settings at which is throwable being thrown. |
$evFullForce | bool value | Gets or sets the value whenever the throwable was thrown at full force (overhand). |
$evIsAllowed | bool value | Whether the event is allowed to run. |