Skip to content

playFx beta ​

Function of @v12-engine/engine

ts
export declare function playFx(world: World, effect: string, options?: FxOptions): number;

Plays one of the view's effects on the screens of the players who see where it is (or those it is for), now. What it gives back stops it (stopFx). Not in the world's state but for its count: a save, and a player who joins later, know nothing of the effect itself