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

Explosion

const Explosion: object

Defined in: server/api.d.ts:1655

Explosions set off in every player’s game at once, as the game sets off its own: the blast, its light, sound, debris and decals, and whatever the explosion leaves behind. An explosion is named by form ID (a number or hex string) or by its editor ID in the official masters (“FragGrenadeExplosion”).

spawn(explosion, position, options?): void

Sets off an explosion in the game of every player in that space whose game has the spot loaded. Each game’s blast hurts what that game simulates: its own player, the NPCs it runs.

string | number

A BGSExplosion (EXPL) form ID: a frag grenade’s, a mini nuke’s, a car’s.

Vector3

Where it goes off.

space: the worldspace or interior cell; the owner’s when an owner is given, else the Commonwealth. scale: of its radii, 1 by default. damage: a multiplier of its damage, 0 for one that hurts nobody. owner: who it is credited to.

number

Player | Npc

number

{ interiorCell?: number | string; worldSpace?: number | string; }

number | string

number | string

void