Skip to main content

DamagedWindow

Gets called when the player has damaged a window.

Start a script section

!-- OnEvent DamagedWindow
-- require @evPlayer *evWindow *evDamageHandler

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerDamagedWindowEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who damaged the window.
*evWindowreference to BreakableWindow objectGets the window.
*evDamageHandlerreference to StandardDamageHandler objectGets the damage handler.