Detonating
Gets called when the warhead is being detonated.
Start a script section
!-- OnEvent Detonating
-- require $evIsAllowed @evPlayer
# Add your instructions here
- Group: WarheadEvents
- Cancellable: Yes
- Event data:
WarheadDetonatingEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
$evIsAllowed | bool value | Whether the event is allowed to run. |
@evPlayer | player value | Gets the player who is detonating the warhead. |