Skip to main content

InteractingWarheadLever

Gets called when player interacts with warhead lever.

Start a script section

!-- OnEvent InteractingWarheadLever
-- require @evPlayer $evEnabled $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerInteractingWarheadLeverEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player that invoked the event.
$evEnabledbool valueGets or sets whether the warhead should be enabled.
$evIsAllowedbool valueWhether the event is allowed to run.