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
| Variable | Type | Description |
|---|---|---|
*evDoor | reference to Door object | Gets the current Door. |
$evDamage | number value | Gets or sets the damage value. |
&evDamageType | collection of DoorDamageType enum values | Gets or sets the damage type. |
$evIsAllowed | bool value | Whether the event is allowed to run. |