Explosion
constExplosion: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”).
Type Declaration
Section titled “Type Declaration”spawn()
Section titled “spawn()”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.
Parameters
Section titled “Parameters”explosion
Section titled “explosion”string | number
A BGSExplosion (EXPL) form ID: a frag grenade’s, a mini nuke’s, a car’s.
position
Section titled “position”Where it goes off.
options?
Section titled “options?”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.
damage?
Section titled “damage?”number
owner?
Section titled “owner?”scale?
Section titled “scale?”number
space?
Section titled “space?”{ interiorCell?: number | string; worldSpace?: number | string; }
space.interiorCell?
Section titled “space.interiorCell?”number | string
space.worldSpace?
Section titled “space.worldSpace?”number | string
Returns
Section titled “Returns”void