Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Fx

const Fx: object

Defined in: client/api.d.ts:3068

Visual effects: Niagara and Cascade systems by asset path. spawn() is local to this client; the server’s Fx.create is the replicated form, and state() reads one of those here.

catalog(): object[]

Curated shipped effect systems (fire, explosions, smoke, weather, water, ambient, magic).

object[]

destroy(handle): boolean

Destroys one locally spawned effect.

number

A handle returned by spawn.

boolean

destroyAll(): number

Destroys every locally spawned effect.

number

How many were still live.

getCollectionParameter(collection, name): number | { a: number; b: number; g: number; r: number; } | null

Reads one parameter of a material parameter collection as this client’s world holds it now.

string

A material parameter collection’s asset path.

string

A parameter the collection declares.

number | { a: number; b: number; g: number; r: number; } | null

A number for a scalar parameter, a color for a vector one, or null when the path is not a collection or it declares no such parameter.

resetCollectionParameters(): number

Puts back every parameter setCollectionParameter changed, to the value it had before this client’s first write.

number

How many parameters were put back.

setCollectionParameter(collection, name, value): boolean

Writes one parameter of a material parameter collection in this client’s world: every material that reads the collection changes at once, the game’s own and a mod pak’s. The game may write the same parameter again, and the last write shows. It holds until resetCollectionParameters, a disconnect, or the world reloads. Throws a TypeError for a malformed value.

string

A material parameter collection’s asset path, e.g. ‘/Game/VFX/MasterMaterials/ParameterCollections/VFX_MP_Revelio.VFX_MP_Revelio’; a mod pak’s works too.

string

A parameter the collection declares.

string | number | { a?: number; b: number; g: number; r: number; }

A number for a scalar parameter, a linear color for a vector one; alpha defaults to 1.

boolean

False when the path is not a collection, or it declares no parameter of the value’s kind by that name.

spawn(path, x, y?, z?, options?): number

Spawns an effect system at a world position on this client only. It lives until destroy, destroyAll, or the world reloads.

string

Effect-system asset path, e.g. a Fx.catalog() entry.

number | Vector3Like

World-space X coordinate.

number

World-space Y coordinate.

number

World-space Z coordinate.

Rotation in degrees and uniform scale (default 1).

number

number

number

number

number

A local handle for destroy, or 0 when the path did not load as a Niagara/Cascade system.

state(networkId): FxClientState | null

This client’s replicated and applied state for one server-owned effect, or null before stream-in and after stream-out/destruction.

number

Server entity id from the server’s Fx.create.

FxClientState | null