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

Sound

const Sound: object

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

Sounds in every player’s game at once, heard where each game places its listener.

play(sound, at, options?): number

Plays a sound for every player near enough to hear it: the descriptor’s own attenuation decides how far it carries.

string | number

A sound descriptor (SNDR) by form ID or editor ID.

string | number | Vector3 | Player | Npc

A spot, or a player, an NPC or a placed reference the sound follows as it moves.

space: the spot’s worldspace or interior cell, the Commonwealth when left out. volume: 0 to 1, 1 by default.

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

number | string

number | string

number

number

The sound’s number, for stop.

stop(sound): void

Stops a sound in every game still playing it.

number

A number play gave.

void