Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.60

Description

Description:Defines whether a sound source should be ambient.

Ambient sound sources are location-independent - they do not have a clear origin, and sound the same, regardless of the player orientation or location, relative to the sound. Non-ambient sounds originate from the specified location, and sound different, depending on the player distance and orientation (this is the default, when a sound source is created).

Syntax

Syntax:sound setSoundSourceAmbient ambient
Parameters:
  • sound: Object - Sound source object.
  • ambient: Boolean - If true, then sound is ambient.
Return Value:Nothing

Examples

Examples:
snd1 setSoundSourceAmbient true;

Additional Information

See also: isSoundSourceAmbient
Multiplayer:
Problems:

Notes