Skip to content

DeathReason beta ​

TypeAlias of @v12-engine/engine

ts
export type DeathReason = 'damage' | 'killed' | 'cancelled' | 'expired' | 'depleted' | 'felled' | 'removed' | (string & {});

Why something died, when it was not of damage: killed by the rules (killed, world.kill), its building called off (cancelled), its time out (expired), a resource used up (depleted), brought down by a blast (felled), taken away with what it stood on or by the debug tools (removed), or the game's own word (sold, sacrificed). damage for one that ran out of health