Skip to content

FxOptions beta ​

Interface of @v12-engine/engine

ts
export interface FxOptions

How the rules play an effect (world.fx)

Members ​

at ​

ts
at?: Vec2 | {
        x: number;
        y: number;
        z: number;
    };

A place: on the ground ({ x, z }) or at a height ({ x, y, z })

on ​

ts
on?: Entity | number;

Or an entity: on the screen it follows it, and ends with it

overFog ​

ts
overFog?: boolean;

Seen over the fog of war by whom it is for, as what is there to be noticed. No when left out

params ​

ts
params?: Record<string, unknown>;

Its knobs, over the effect's own (EffectDef.params): plain data

point ​

ts
point?: string;

A point of the entity's model (ModelDef.points)

seed ​

ts
seed?: number;

What its random parts go by: one made from the tick when left out, the same on every screen all the same

to ​

ts
to?: Audience;

Who sees it: a player, some, or everyone who sees the place (when left out)

toward ​

ts
toward?: Entity | number | Vec2;

The other end, for an effect drawn between two (a beam, a tether, a link of a chain: the client's linkFx): an entity it follows on the screen, or a place. It starts at at or on; seen by whoever sees either end