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

Sound

const Sound: object

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

Game sounds only the local player hears, played through the game’s audio as Sound.Play does. A resource’s sounds stop when it stops.

isPlaying(id): boolean

Whether a sound play started has yet to end; true while it is still starting.

number

What play returned.

boolean

play(sound, options?): number

Plays a sound for this client alone. The instance ID, or 0 when nothing played: no such sound, 64 already playing, or the game refused it.

string | number

A sound descriptor (SNDR), or a sound marker (SOUN) for its descriptor: its editor ID, or its form ID (a number, or a string starting 0x).

x, y, z: play at this world point, all three or none; without them the sound is unpositioned, heard the same wherever the camera is. volume: 0 to 1, 1 by default.

number

number

number

number

number

stop(id): boolean

Stops a sound play started. False when it already ended or was never played here.

number

What play returned.

boolean