Skip to main content
Portal Documentation
Discord GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Play Sound

Battlefield 6 Scripting Docs


Battlefield 6 Scripting Docs / mod / mod / PlaySound

Function: PlaySound()

Call Signature

function PlaySound(
   objectId, 
   amplitude, 
   team): void;

Defined in: mod/index.d.ts:20140

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
objectId number
amplitude number
team Team

Returns

void

Call Signature

function PlaySound(
   objectId, 
   amplitude, 
   squad): void;

Defined in: mod/index.d.ts:20143

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
objectId number
amplitude number
squad Squad

Returns

void

Call Signature

function PlaySound(
   objectId, 
   amplitude, 
   player): void;

Defined in: mod/index.d.ts:20146

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
objectId number
amplitude number
player Player

Returns

void

Call Signature

function PlaySound(objectId, amplitude): void;

Defined in: mod/index.d.ts:20149

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
objectId number
amplitude number

Returns

void

Call Signature

function PlaySound(
   object, 
   amplitude, 
   team): void;

Defined in: mod/index.d.ts:20152

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
object Object
amplitude number
team Team

Returns

void

Call Signature

function PlaySound(
   object, 
   amplitude, 
   squad): void;

Defined in: mod/index.d.ts:20155

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
object Object
amplitude number
squad Squad

Returns

void

Call Signature

function PlaySound(
   object, 
   amplitude, 
   player): void;

Defined in: mod/index.d.ts:20158

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
object Object
amplitude number
player Player

Returns

void

Call Signature

function PlaySound(object, amplitude): void;

Defined in: mod/index.d.ts:20161

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
object Object
amplitude number

Returns

void

Call Signature

function PlaySound(
   object, 
   amplitude, 
   location, 
   attenuationRange, 
   team): void;

Defined in: mod/index.d.ts:20164

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
object Object
amplitude number
location Vector
attenuationRange number
team Team

Returns

void

Call Signature

function PlaySound(
   object, 
   amplitude, 
   location, 
   attenuationRange, 
   squad): void;

Defined in: mod/index.d.ts:20173

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
object Object
amplitude number
location Vector
attenuationRange number
squad Squad

Returns

void

Call Signature

function PlaySound(
   object, 
   amplitude, 
   location, 
   attenuationRange, 
   player): void;

Defined in: mod/index.d.ts:20182

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
object Object
amplitude number
location Vector
attenuationRange number
player Player

Returns

void

Call Signature

function PlaySound(
   object, 
   amplitude, 
   location, 
   attenuationRange): void;

Defined in: mod/index.d.ts:20191

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
object Object
amplitude number
location Vector
attenuationRange number

Returns

void

Call Signature

function PlaySound(
   objectId, 
   amplitude, 
   location, 
   attenuationRange): void;

Defined in: mod/index.d.ts:20194

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
objectId number
amplitude number
location Vector
attenuationRange number

Returns

void

Call Signature

function PlaySound(
   objectId, 
   amplitude, 
   location, 
   attenuationRange, 
   team): void;

Defined in: mod/index.d.ts:20197

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
objectId number
amplitude number
location Vector
attenuationRange number
team Team

Returns

void

Call Signature

function PlaySound(
   objectId, 
   amplitude, 
   location, 
   attenuationRange, 
   squad): void;

Defined in: mod/index.d.ts:20206

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
objectId number
amplitude number
location Vector
attenuationRange number
squad Squad

Returns

void

Call Signature

function PlaySound(
   objectId, 
   amplitude, 
   location, 
   attenuationRange, 
   player): void;

Defined in: mod/index.d.ts:20215

Plays a sound using runtime spawner tech.

Parameters

Parameter Type
objectId number
amplitude number
location Vector
attenuationRange number
player Player

Returns

void