Type Alias DeathEvents

An interface with all supported death events and their respective callback arguments. To be called from MessageManager.

type DeathEvents = {
    deathReceived: [source: string, time: number, cause?: string];
}
Index
deathReceived: [source: string, time: number, cause?: string]

Fired when a DeathLink-enabled player has sent a DeathLink.

The player who sent this DeathLink.

The timestamp this player died. Time is in number of milliseconds from unix epoch (same timestamp system in JavaScript).

Optional description detailing the specific cause of death.