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:13126

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:13129

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:13132

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:13135

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:13138

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:13169

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:13200

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:13231

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:13261

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:13294

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:13327

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:13360

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:13392

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:13395

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:13404

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:13413

Plays a sound using runtime spawner tech.

Parameters

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

Returns

void