Skip to main content

DoorDamaging

Gets called when a door is damaging.

Start a script section

!-- OnEvent DoorDamaging
-- require *evDoor $evDamage &evDamageType $evIsAllowed

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

Injected variables

VariableTypeDescription
*evDoorreference to Door objectGets the current Door.
$evDamagenumber valueGets or sets the damage value.
&evDamageTypecollection of DoorDamageType enum valuesGets or sets the damage type.
$evIsAllowedbool valueWhether the event is allowed to run.