Skip to main content

ExplosionSpawning

Gets called when harmable explosion is spawning.

Start a script section

!-- OnEvent ExplosionSpawning
-- require @evPlayer *evPosition *evSettings $evExplosionType $evDestroyDoors $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets or sets the player which caused this explosion.
*evPositionreference to Vector3 objectGets or sets the position of explosion.
*evSettingsreference to ExplosionGrenade objectGets or sets the projectile which will cause explosion.
$evExplosionTypeExplosionType enum valueGets or sets the type of this explosion.
$evDestroyDoorsbool valueGets or sets whether the explosion should destroy doors.
$evIsAllowedbool valueWhether the event is allowed to run.