Skip to content

setAlight beta ​

Function of @v12-engine/engine

ts
export declare function setAlight(world: World, entity: Entity, options?: {
    by?: Entity;
    how?: string;
    seconds?: number;
}): boolean;

Sets a thing alight: it burns for its time (BurnsDef.seconds), then burns down and leaves what it leaves (BurnsDef.leaves). by: who lit it, whom its damage and its kill are by; how: another kind of burning than its own; seconds: another time. The game is asked first (burnStart). One that burns already, does not burn, or is past the most that may burn at once (BurningOptions.maxBurning) does not catch. One put out before goes on from as far as it had burnt. Whether it caught