Skip to main content

ExplosionSpawned

Gets called when explosion has spawned.

Start a script section

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

# Add your instructions here
  • Group: ServerEvents
  • Cancellable: No
  • Event data: ExplosionSpawnedEventArgs

Injected variables

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