Dying
Gets called when the player is dying.
Start a script sectionโ
!-- OnEvent Dying
-- require @evPlayer @evAttacker *evDamageHandler $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerDyingEventArgs
Injected variablesโ
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is dying. |
@evAttacker | player value | Gets the player who attacked. |
*evDamageHandler | reference to StandardDamageHandler object | Gets the damage handler who is causing death. |
$evIsAllowed | bool value | Whether the event is allowed to run. |