Death
Gets called when the player has died.
Start a script sectionโ
!-- OnEvent Death
-- require @evPlayer @evAttacker *evDamageHandler $evOldRole *evOldPosition *evOldVelocity *evOldCameraRotation
# Add your instructions here
- Group: PlayerEvents
- Cancellable: No
- Event data:
PlayerDeathEventArgs
Injected variablesโ
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who died. |
@evAttacker | player value | Gets the player who caused the death. |
*evDamageHandler | reference to StandardDamageHandler object | Gets the damage that caused the death. |
$evOldRole | RoleTypeId enum value | Gets the role of the Player before they had died. |
*evOldPosition | reference to Vector3 object | Gets the player's position before they died. |
*evOldVelocity | reference to Vector3 object | Gets the player's velocity before they died. |
*evOldCameraRotation | reference to Quaternion object | Gets the player's camera rotation before they died. |