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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets or sets the player which caused this explosion. |
*evPosition | reference to Vector3 object | Gets or sets the position of explosion. |
*evSettings | reference to ExplosionGrenade object | Gets or sets the projectile which will cause explosion. |
$evExplosionType | ExplosionType enum value | Gets or sets the type of this explosion. |
$evDestroyDoors | bool value | Gets or sets whether the explosion should destroy doors. |
$evIsAllowed | bool value | Whether the event is allowed to run. |