DamagingWindow
Gets called when the player is damaging a window.
Start a script section
!-- OnEvent DamagingWindow
-- require @evPlayer *evWindow *evDamageHandler $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerDamagingWindowEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is damaging the window. |
*evWindow | reference to BreakableWindow object | Gets the window. |
*evDamageHandler | reference to StandardDamageHandler object | Gets the damage handler. |
$evIsAllowed | bool value | Whether the event is allowed to run. |