Skip to main content

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โ€‹

VariableTypeDescription
@evPlayerplayer valueGets the player who died.
@evAttackerplayer valueGets the player who caused the death.
*evDamageHandlerreference to StandardDamageHandler objectGets the damage that caused the death.
$evOldRoleRoleTypeId enum valueGets the role of the Player before they had died.
*evOldPositionreference to Vector3 objectGets the player's position before they died.
*evOldVelocityreference to Vector3 objectGets the player's velocity before they died.
*evOldCameraRotationreference to Quaternion objectGets the player's camera rotation before they died.

Validated examples using this eventโ€‹