Skip to main content

UnlockingWarheadButton

Gets called when warhead button on surface is being unlocked.

Start a script section

!-- OnEvent UnlockingWarheadButton
-- require @evPlayer $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is unlocking the warhead button.
$evIsAllowedbool valueWhether the event is allowed to run.