Skip to content

entityDied ​

Variable of @v12-engine/engine

ts
entityDied: import("./events").EventKey<{
    entity: import("./entity").Entity;
    killer?: import("./entity").Entity;
    attack: boolean;
    cause?: import("./world").DeathCause;
    how?: string;
    reason: import("./world").DeathReason;
}>

Something died: what killed it, and how. cause: the blow, for what died of damage. how: what the rules made of the death in the death hook, for the screen to show ('exploded', 'burned')