Skip to content
FMFallout Multiplayer Scripting APIScripting guides and API
Global objectClient APIGenerated

Effects

const Effects: object

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

Effects only the local player sees and feels: screen and controller effects, and explosions, shaders, visual effects and impacts in this game alone. Fades are on Hud.fade; the server’s Explosion and Effect play for everyone.

applyImageSpace(modifier, strength?): boolean

Applies an image space modifier, as ImageSpaceModifier.Apply does; it runs its own length, and is removed once this resource stops. False when there is no such modifier or no world to run it in.

string | number

An image space modifier (IMAD): its editor ID, or its form ID (a number, or a string starting 0x).

number

0 to 1, 1 by default.

boolean

explode(explosion, position, options?): boolean

Sets off an explosion in this game alone. Its blast hurts what this game simulates.

string | number

A BGSExplosion (EXPL) form ID.

Vector3

Where it goes off, in the player’s space.

scale of its radii, damage a multiplier of its damage (0 for a harmless one); 1 by default.

number

number

boolean

False when there is no such explosion, or the spot is not loaded here.

playImpact(ref, impactSet, options?): boolean

Plays an impact where a ray from the reference lands, in this game alone, as ObjectReference.PlayImpactEffect does.

string | number

A reference or actor of this game by form ID: 0x14 for the player, References.getEntityBody for another player or an NPC.

string | number

A BGSImpactDataSet (IPDS) form ID.

The ray: from the named node (the root when left out), along the direction (straight down by default), for the length in game units (512).

Vector3

number

string

boolean

False when the reference is not loaded here or the ray hit nothing.

playShader(ref, shader, seconds?): boolean

Plays an effect shader on a reference in this game alone, as EffectShader.Play does.

string | number

A reference or actor of this game by form ID: 0x14 for the player, References.getEntityBody for another player or an NPC.

string | number

A TESEffectShader (EFSH) form ID.

number

How long; until stopShader when left out.

boolean

False when the reference is not loaded here or the form is no shader.

playVisual(ref, effect, seconds?): boolean

Attaches a visual effect to a reference in this game alone, as VisualEffect.Play does.

string | number

A reference or actor of this game by form ID: 0x14 for the player, References.getEntityBody for another player or an NPC.

string | number

A BGSReferenceEffect (RFCT) form ID.

number

How long; until stopVisual when left out.

boolean

False when the reference is not loaded here or the form is no visual effect.

removeImageSpace(modifier): boolean

Stops as many instances of a modifier as this resource applied and are still running. The game stops the oldest instances of the record, which may be ones it started itself. False when none of this resource’s are running.

string | number

The modifier’s editor ID, or its form ID (a number, or a string starting 0x).

boolean

shakeCamera(strength, seconds): boolean

Shakes the camera, as Game.ShakeCamera does from the player. False while there is no player in the world.

number

0 to 1.

number

How long; 0 for the game’s default.

boolean

shakeController(left, right, seconds): void

Rumbles the gamepad, as Game.ShakeController does.

number

Left motor, 0 to 1.

number

Right motor, 0 to 1.

number

How long.

void

stopShader(ref, shader): void

Stops an effect shader on a reference.

string | number

A reference or actor of this game by form ID: 0x14 for the player, References.getEntityBody for another player or an NPC.

string | number

The shader played.

void

stopVisual(ref, effect): void

Takes a visual effect off a reference.

string | number

A reference or actor of this game by form ID: 0x14 for the player, References.getEntityBody for another player or an NPC.

string | number

The visual effect played.

void