Skip to main content

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

VariableTypeDescription
@evPlayerplayer valueGets the player who is damaging the window.
*evWindowreference to BreakableWindow objectGets the window.
*evDamageHandlerreference to StandardDamageHandler objectGets the damage handler.
$evIsAllowedbool valueWhether the event is allowed to run.