Skip to content

DeathFx beta ​

Interface of @v12-engine/client

ts
export interface DeathFx

An effect at a death (DeathDef.fx): by name or as it is, at a point of the model, a moment after it, with knobs

Members ​

delay ​

ts
delay?: number;

Seconds after the death it plays

fx ​

ts
fx: string | FxDef;

The effect to play, by name in GameView.fx.defs or as a definition

offset ​

ts
offset?: [number, number, number];

How far from there, in world units: up is y

params ​

ts
params?: FxParams;

Knobs given to the effect, over its own defaults

point ​

ts
point?: string;

A point of its model (ModelDef.points): its feet when left out