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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is unlocking the warhead button. |
$evIsAllowed | bool value | Whether the event is allowed to run. |