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