Skip to main content

ProjectileExploding

Gets called when the server will explode projectile.

Start a script section

!-- OnEvent ProjectileExploding
-- require *evTimedGrenade @evPlayer *evPosition $evIsAllowed

# Add your instructions here
  • Group: ServerEvents
  • Cancellable: Yes
  • Event data: ProjectileExplodingEventArgs

Injected variables

VariableTypeDescription
*evTimedGrenadereference to TimedGrenadeProjectile objectGets grenade which caused this explosion.
@evPlayerplayer valueGets who threw this grenade.
*evPositionreference to Vector3 objectGets or sets position of explosion.
$evIsAllowedbool valueWhether the event is allowed to run.