Skip to content

Kiln API / kiln / Lifetime

Variable: Lifetime ​

ts
const Lifetime: Trait<{
  seconds: number;
  ticks: number;
}>;

Despawns the entity seconds after it spawned: bullets, effects, popups. Lifetime({ seconds: 2 }).